use crate::metadata::ir::*;
pub(crate) static REGISTERS: IR = IR {
blocks: &[Block {
name: "Adc",
extends: None,
description: Some("Analog to digital converter."),
items: &[
BlockItem {
name: "statr",
description: Some("status register."),
array: None,
byte_offset: 0x0,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Statr"),
}),
},
BlockItem {
name: "ctlr1",
description: Some("control register 1/TKEY_V_CTLR."),
array: None,
byte_offset: 0x4,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Ctlr1"),
}),
},
BlockItem {
name: "ctlr2",
description: Some("control register 2."),
array: None,
byte_offset: 0x8,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Ctlr2"),
}),
},
BlockItem {
name: "samptr1",
description: Some("sample time register 1."),
array: None,
byte_offset: 0xc,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Samptr1"),
}),
},
BlockItem {
name: "samptr2",
description: Some("sample time register 2."),
array: None,
byte_offset: 0x10,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Samptr2"),
}),
},
BlockItem {
name: "iofr1",
description: Some("injected channel data offset register x."),
array: None,
byte_offset: 0x14,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Iofr1"),
}),
},
BlockItem {
name: "iofr2",
description: Some("injected channel data offset register x."),
array: None,
byte_offset: 0x18,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Iofr2"),
}),
},
BlockItem {
name: "iofr3",
description: Some("injected channel data offset register x."),
array: None,
byte_offset: 0x1c,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Iofr3"),
}),
},
BlockItem {
name: "iofr4",
description: Some("injected channel data offset register x."),
array: None,
byte_offset: 0x20,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Iofr4"),
}),
},
BlockItem {
name: "wdhtr",
description: Some("watchdog higher threshold register."),
array: None,
byte_offset: 0x24,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Wdhtr"),
}),
},
BlockItem {
name: "wdltr",
description: Some("watchdog lower threshold register."),
array: None,
byte_offset: 0x28,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Wdltr"),
}),
},
BlockItem {
name: "rsqr1",
description: Some("regular sequence register 1."),
array: None,
byte_offset: 0x2c,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Rsqr1"),
}),
},
BlockItem {
name: "rsqr2",
description: Some("regular sequence register 2."),
array: None,
byte_offset: 0x30,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Rsqr2"),
}),
},
BlockItem {
name: "rsqr3",
description: Some("regular sequence register 3."),
array: None,
byte_offset: 0x34,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Rsqr3"),
}),
},
BlockItem {
name: "isqr",
description: Some("injected sequence register."),
array: None,
byte_offset: 0x38,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Isqr"),
}),
},
BlockItem {
name: "idatar1",
description: Some(
"injected data register x_Charge data offset for injected channel x.",
),
array: None,
byte_offset: 0x3c,
inner: BlockItemInner::Register(Register {
access: Access::Read,
bit_size: 32,
fieldset: Some("Idatar1"),
}),
},
BlockItem {
name: "idatar2",
description: Some("injected data register x."),
array: None,
byte_offset: 0x40,
inner: BlockItemInner::Register(Register {
access: Access::Read,
bit_size: 32,
fieldset: Some("Idatar2"),
}),
},
BlockItem {
name: "idatar3",
description: Some("injected data register x."),
array: None,
byte_offset: 0x44,
inner: BlockItemInner::Register(Register {
access: Access::Read,
bit_size: 32,
fieldset: Some("Idatar3"),
}),
},
BlockItem {
name: "idatar4",
description: Some("injected data register x."),
array: None,
byte_offset: 0x48,
inner: BlockItemInner::Register(Register {
access: Access::Read,
bit_size: 32,
fieldset: Some("Idatar4"),
}),
},
BlockItem {
name: "rdatar",
description: Some("regular data register."),
array: None,
byte_offset: 0x4c,
inner: BlockItemInner::Register(Register {
access: Access::Read,
bit_size: 32,
fieldset: Some("Rdatar"),
}),
},
BlockItem {
name: "aux",
description: Some("ADC time register."),
array: None,
byte_offset: 0x54,
inner: BlockItemInner::Register(Register {
access: Access::ReadWrite,
bit_size: 32,
fieldset: Some("Aux"),
}),
},
],
}],
fieldsets: &[
FieldSet {
name: "Aux",
extends: None,
description: Some("ADC time register."),
bit_size: 32,
fields: &[
Field {
name: "adc_smp_sel0",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel1",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 1 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel2",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 2 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel3",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 3 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel4",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 4 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel5",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 5 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel6",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 6 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel7",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 7 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel8",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 8 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel9",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 9 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel10",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 10 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel11",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 11 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel12",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 12 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel13",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 13 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel14",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 14 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel15",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 15 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel16",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 16 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_smp_sel17",
description: Some("channel sampling time optional enable bit."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 17 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_to_dfsdm",
description: Some("ADC module samples data to DFSDM."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 31 }),
bit_size: 1,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Ctlr1",
extends: None,
description: Some("control register 1/TKEY_V_CTLR."),
bit_size: 32,
fields: &[
Field {
name: "awdch",
description: Some("Analog watchdog channel select bits."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "eocie",
description: Some("Interrupt enable for EOC."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 5 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "awdie",
description: Some("Analog watchdog interrupt enable."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 6 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "jeocie",
description: Some("Interrupt enable for injected channels."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 7 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "scan",
description: Some("Scan mode enable."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 8 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "awdsgl",
description: Some("Enable the watchdog on a single channel in scan mode."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 9 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "jauto",
description: Some("Automatic injected group conversion."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 10 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "discen",
description: Some("Discontinuous mode on regular channels."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 11 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "jdiscen",
description: Some("Discontinuous mode on injected channels."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 12 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "discnum",
description: Some("Discontinuous mode channel count."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 13 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "dualmod",
description: Some("Dual mode selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 16 }),
bit_size: 4,
array: None,
enumm: None,
},
Field {
name: "jawden",
description: Some("Analog watchdog enable on injected channels."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 22 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "awden",
description: Some("Analog watchdog enable on regular channels."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 23 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "tkenable",
description: Some("TKEY enable, including TKEY_F and TKEY_V."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 24 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "tkitune",
description: Some("TKEY_I enable."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 25 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "bufen",
description: Some("TKEY_BUF_Enable."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 26 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "pga",
description: Some("ADC_PGA."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 27 }),
bit_size: 2,
array: None,
enumm: None,
},
Field {
name: "ana_rst",
description: Some("simulation module reset enabled."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 30 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "sw_pre",
description: Some("Channel pre-handoff is closed."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 31 }),
bit_size: 1,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Ctlr2",
extends: None,
description: Some("control register 2."),
bit_size: 32,
fields: &[
Field {
name: "adon",
description: Some("A/D converter ON / OFF."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "cont",
description: Some("Continuous conversion."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 1 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "cal",
description: Some("A/D calibration."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 2 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "rstcal",
description: Some("Reset calibration."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 3 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "cal_vol",
description: Some("calibration voltage configuration."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 4 }),
bit_size: 2,
array: None,
enumm: None,
},
Field {
name: "cal_auto",
description: Some("the hardware automatic calibration."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 6 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adc_lp",
description: Some("ADC low power mode control."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 7 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "dma",
description: Some("Direct memory access mode."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 8 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "align",
description: Some("Data alignment."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 11 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "jextsel",
description: Some("External event select for injected group."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 12 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "jexttrig",
description: Some("External trigger conversion mode for injected channels."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 15 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "extsel",
description: Some("External event select for regular group."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 17 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "exttrig",
description: Some("External trigger conversion mode for regular channels."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 20 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "jswstart",
description: Some("Start conversion of injected channels."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 21 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "swstart",
description: Some("Start conversion of regular channels."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 22 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "tsvrefe",
description: Some("Temperature sensor and VREFINT enable."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 23 }),
bit_size: 1,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Idatar1",
extends: None,
description: Some(
"injected data register x_Charge data offset for injected channel x.",
),
bit_size: 32,
fields: &[Field {
name: "idata_tkcgoffset",
description: Some(
"Injected data_Touch key charge data offset for injected channel x.",
),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 16,
array: None,
enumm: None,
}],
},
FieldSet {
name: "Idatar2",
extends: None,
description: Some("injected data register x."),
bit_size: 32,
fields: &[Field {
name: "jdata",
description: Some("Injected data."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 16,
array: None,
enumm: None,
}],
},
FieldSet {
name: "Idatar3",
extends: None,
description: Some("injected data register x."),
bit_size: 32,
fields: &[Field {
name: "jdata",
description: Some("Injected data."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 16,
array: None,
enumm: None,
}],
},
FieldSet {
name: "Idatar4",
extends: None,
description: Some("injected data register x."),
bit_size: 32,
fields: &[Field {
name: "jdata",
description: Some("Injected data."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 16,
array: None,
enumm: None,
}],
},
FieldSet {
name: "Iofr1",
extends: None,
description: Some("injected channel data offset register x."),
bit_size: 32,
fields: &[Field {
name: "joffset1",
description: Some("Data offset for injected channel x."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 12,
array: None,
enumm: None,
}],
},
FieldSet {
name: "Iofr2",
extends: None,
description: Some("injected channel data offset register x."),
bit_size: 32,
fields: &[Field {
name: "joffset2",
description: Some("Data offset for injected channel x."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 12,
array: None,
enumm: None,
}],
},
FieldSet {
name: "Iofr3",
extends: None,
description: Some("injected channel data offset register x."),
bit_size: 32,
fields: &[Field {
name: "joffset3",
description: Some("Data offset for injected channel x."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 12,
array: None,
enumm: None,
}],
},
FieldSet {
name: "Iofr4",
extends: None,
description: Some("injected channel data offset register x."),
bit_size: 32,
fields: &[Field {
name: "joffset4",
description: Some("Data offset for injected channel x."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 12,
array: None,
enumm: None,
}],
},
FieldSet {
name: "Isqr",
extends: None,
description: Some("injected sequence register."),
bit_size: 32,
fields: &[
Field {
name: "jsq1",
description: Some("1st conversion in injected sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "jsq2",
description: Some("2nd conversion in injected sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 5 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "jsq3",
description: Some("3rd conversion in injected sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 10 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "jsq4",
description: Some("4th conversion in injected sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 15 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "jl",
description: Some("Injected sequence length."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 20 }),
bit_size: 2,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Rdatar",
extends: None,
description: Some("regular data register."),
bit_size: 32,
fields: &[
Field {
name: "data0_7",
description: Some("Regular data."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 8,
array: None,
enumm: None,
},
Field {
name: "data8_15",
description: Some("Regular data."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 8 }),
bit_size: 8,
array: None,
enumm: None,
},
Field {
name: "adc2data",
description: Some("converter data."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 16 }),
bit_size: 16,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Rsqr1",
extends: None,
description: Some("regular sequence register 1."),
bit_size: 32,
fields: &[
Field {
name: "sq13",
description: Some("13th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq14",
description: Some("14th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 5 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq15",
description: Some("15th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 10 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq16",
description: Some("16th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 15 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "l",
description: Some("Regular channel sequence length."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 20 }),
bit_size: 4,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Rsqr2",
extends: None,
description: Some("regular sequence register 2."),
bit_size: 32,
fields: &[
Field {
name: "sq7",
description: Some("7th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq8",
description: Some("8th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 5 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq9",
description: Some("9th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 10 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq10",
description: Some("10th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 15 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq11",
description: Some("11th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 20 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq12",
description: Some("12th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 25 }),
bit_size: 5,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Rsqr3",
extends: None,
description: Some("regular sequence register 3."),
bit_size: 32,
fields: &[
Field {
name: "sq1",
description: Some("1st conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq2",
description: Some("2nd conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 5 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq3",
description: Some("3rd conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 10 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq4",
description: Some("4th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 15 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq5",
description: Some("5th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 20 }),
bit_size: 5,
array: None,
enumm: None,
},
Field {
name: "sq6",
description: Some("6th conversion in regular sequence."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 25 }),
bit_size: 5,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Samptr1",
extends: None,
description: Some("sample time register 1."),
bit_size: 32,
fields: &[
Field {
name: "smp10_tkcg10",
description: Some("Channel 10 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp11_tkcg11",
description: Some("Channel 11 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 3 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp12_tkcg12",
description: Some("Channel 12 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 6 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp13_tkcg13",
description: Some("Channel 13 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 9 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp14_tkcg14",
description: Some("Channel 14 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 12 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp15_tkcg15",
description: Some("Channel 15 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 15 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp16",
description: Some("Channel 16 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 18 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp17",
description: Some("Channel 17 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 21 }),
bit_size: 3,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Samptr2",
extends: None,
description: Some("sample time register 2."),
bit_size: 32,
fields: &[
Field {
name: "smp0_tkcg0",
description: Some("Channel 0 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp1_tkcg1",
description: Some("Channel 1 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 3 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp2_tkcg2",
description: Some("Channel 2 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 6 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp3_tkcg3",
description: Some("Channel 3 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 9 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp4_tkcg4",
description: Some("Channel 4 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 12 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp5_tkcg5",
description: Some("Channel 5 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 15 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp6_tkcg6",
description: Some("Channel 6 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 18 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp7_tkcg7",
description: Some("Channel 7 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 21 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp8_tkcg8",
description: Some("Channel 8 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 24 }),
bit_size: 3,
array: None,
enumm: None,
},
Field {
name: "smp9_tkcg9",
description: Some("Channel 9 sample time selection."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 27 }),
bit_size: 3,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Statr",
extends: None,
description: Some("status register."),
bit_size: 32,
fields: &[
Field {
name: "awd",
description: Some("Analog watchdog flag."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "eoc",
description: Some("Regular channel end of conversion."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 1 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "jeoc",
description: Some("Injected channel end of conversion."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 2 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "jstrt",
description: Some("Injected channel start flag."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 3 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "strt",
description: Some("Regular channel start flag."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 4 }),
bit_size: 1,
array: None,
enumm: None,
},
Field {
name: "adcrstf",
description: Some("ADC reset flag."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 15 }),
bit_size: 1,
array: None,
enumm: None,
},
],
},
FieldSet {
name: "Wdhtr",
extends: None,
description: Some("watchdog higher threshold register."),
bit_size: 32,
fields: &[Field {
name: "ht",
description: Some("Analog watchdog higher threshold."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 12,
array: None,
enumm: None,
}],
},
FieldSet {
name: "Wdltr",
extends: None,
description: Some("watchdog lower threshold register."),
bit_size: 32,
fields: &[Field {
name: "lt",
description: Some("Analog watchdog lower threshold."),
bit_offset: BitOffset::Regular(RegularBitOffset { offset: 0 }),
bit_size: 12,
array: None,
enumm: None,
}],
},
],
enums: &[],
};