stm32h5_staging/stm32h573/gpdma1/c5tr1.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775
///Register `C5TR1` reader
pub type R = crate::R<C5TR1rs>;
///Register `C5TR1` writer
pub type W = crate::W<C5TR1rs>;
/**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 (GPDMA_CxBR1.BNDT\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and no transfer is issued. A source burst transfer must have an aligned address with its data width (start address GPDMA_CxSAR\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and none transfer is issued.
Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SDW_LOG2R {
///0: Byte
Byte = 0,
///1: Half-word (2 bytes)
HalfWord = 1,
///2: Word (4 bytes)
Word = 2,
///3: User setting error
Error = 3,
}
impl From<SDW_LOG2R> for u8 {
#[inline(always)]
fn from(variant: SDW_LOG2R) -> Self {
variant as _
}
}
impl crate::FieldSpec for SDW_LOG2R {
type Ux = u8;
}
impl crate::IsEnum for SDW_LOG2R {}
/**Field `SDW_LOG2` reader - 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 (GPDMA_CxBR1.BNDT\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and no transfer is issued. A source burst transfer must have an aligned address with its data width (start address GPDMA_CxSAR\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and none transfer is issued.*/
pub type SDW_LOG2_R = crate::FieldReader<SDW_LOG2R>;
impl SDW_LOG2_R {
///Get enumerated values variant
#[inline(always)]
pub const fn variant(&self) -> SDW_LOG2R {
match self.bits {
0 => SDW_LOG2R::Byte,
1 => SDW_LOG2R::HalfWord,
2 => SDW_LOG2R::Word,
3 => SDW_LOG2R::Error,
_ => unreachable!(),
}
}
///Byte
#[inline(always)]
pub fn is_byte(&self) -> bool {
*self == SDW_LOG2R::Byte
}
///Half-word (2 bytes)
#[inline(always)]
pub fn is_half_word(&self) -> bool {
*self == SDW_LOG2R::HalfWord
}
///Word (4 bytes)
#[inline(always)]
pub fn is_word(&self) -> bool {
*self == SDW_LOG2R::Word
}
///User setting error
#[inline(always)]
pub fn is_error(&self) -> bool {
*self == SDW_LOG2R::Error
}
}
/**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 (GPDMA_CxBR1.BNDT\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and no transfer is issued. A source burst transfer must have an aligned address with its data width (start address GPDMA_CxSAR\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and none transfer is issued.
Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SDW_LOG2W {
///0: Byte
Byte = 0,
///1: Half-word (2 bytes)
HalfWord = 1,
///2: Word (4 bytes)
Word = 2,
}
impl From<SDW_LOG2W> for u8 {
#[inline(always)]
fn from(variant: SDW_LOG2W) -> Self {
variant as _
}
}
impl crate::FieldSpec for SDW_LOG2W {
type Ux = u8;
}
impl crate::IsEnum for SDW_LOG2W {}
/**Field `SDW_LOG2` writer - 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 (GPDMA_CxBR1.BNDT\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and no transfer is issued. A source burst transfer must have an aligned address with its data width (start address GPDMA_CxSAR\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and none transfer is issued.*/
pub type SDW_LOG2_W<'a, REG> = crate::FieldWriter<'a, REG, 2, SDW_LOG2W>;
impl<'a, REG> SDW_LOG2_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
///Byte
#[inline(always)]
pub fn byte(self) -> &'a mut crate::W<REG> {
self.variant(SDW_LOG2W::Byte)
}
///Half-word (2 bytes)
#[inline(always)]
pub fn half_word(self) -> &'a mut crate::W<REG> {
self.variant(SDW_LOG2W::HalfWord)
}
///Word (4 bytes)
#[inline(always)]
pub fn word(self) -> &'a mut crate::W<REG> {
self.variant(SDW_LOG2W::Word)
}
}
/**source incrementing burst The source address, pointed by GPDMA_CxSAR, 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.
Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SINC {
///0: Fixed burst
FixedBurst = 0,
///1: Contiguously incremented burst
Contiguous = 1,
}
impl From<SINC> for bool {
#[inline(always)]
fn from(variant: SINC) -> Self {
variant as u8 != 0
}
}
///Field `SINC` reader - source incrementing burst The source address, pointed by GPDMA_CxSAR, 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.
pub type SINC_R = crate::BitReader<SINC>;
impl SINC_R {
///Get enumerated values variant
#[inline(always)]
pub const fn variant(&self) -> SINC {
match self.bits {
false => SINC::FixedBurst,
true => SINC::Contiguous,
}
}
///Fixed burst
#[inline(always)]
pub fn is_fixed_burst(&self) -> bool {
*self == SINC::FixedBurst
}
///Contiguously incremented burst
#[inline(always)]
pub fn is_contiguous(&self) -> bool {
*self == SINC::Contiguous
}
}
///Field `SINC` writer - source incrementing burst The source address, pointed by GPDMA_CxSAR, 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.
pub type SINC_W<'a, REG> = crate::BitWriter<'a, REG, SINC>;
impl<'a, REG> SINC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
///Fixed burst
#[inline(always)]
pub fn fixed_burst(self) -> &'a mut crate::W<REG> {
self.variant(SINC::FixedBurst)
}
///Contiguously incremented burst
#[inline(always)]
pub fn contiguous(self) -> &'a mut crate::W<REG> {
self.variant(SINC::Contiguous)
}
}
/**Field `SBL_1` reader - 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 singles/bursts, but the data integrity is guaranteed.*/
pub type SBL_1_R = crate::FieldReader;
/**Field `SBL_1` writer - 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 singles/bursts, but the data integrity is guaranteed.*/
pub type SBL_1_W<'a, REG> = crate::FieldWriter<'a, REG, 6, u8, crate::Safe>;
/**Field `PAM` reader - padding/alignment mode If DDW_LOG2\[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, in the following enumerated values, the condition PAM_1 is when destination data width is higher that source data width, and the condition PAM_2 is when destination data width is higher than 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 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: If the transfer from the source peripheral is configured with peripheral flow-control mode (SWREQ = 0 and PFREQ = 1 and DREQ = 0), and if the destination data width > the source data width, packing is not supported.*/
pub type PAM_R = crate::FieldReader;
/**Field `PAM` writer - padding/alignment mode If DDW_LOG2\[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, in the following enumerated values, the condition PAM_1 is when destination data width is higher that source data width, and the condition PAM_2 is when destination data width is higher than 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 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: If the transfer from the source peripheral is configured with peripheral flow-control mode (SWREQ = 0 and PFREQ = 1 and DREQ = 0), and if the destination data width > the source data width, packing is not supported.*/
pub type PAM_W<'a, REG> = crate::FieldWriter<'a, REG, 2, u8, crate::Safe>;
/**PAM value when destination data width is higher than source data width
Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PAM_1 {
///0: Source data is transferred as right aligned, padded with 0s up to the destination data width
RightAlignedZeroPadded = 0,
///1: Source data is transferred as right aligned, sign extended up to the destination data width
RightAlignedSignExtended = 1,
///2: Source data are FIFO queued and packed at the destination data width, in little endian order, before a destination transfer
Fifo = 2,
}
impl From<PAM_1> for u8 {
#[inline(always)]
fn from(variant: PAM_1) -> Self {
variant as _
}
}
impl crate::FieldSpec for PAM_1 {
type Ux = u8;
}
impl crate::IsEnum for PAM_1 {}
///Field `PAM_1` reader - PAM value when destination data width is higher than source data width
pub type PAM_1_R = crate::FieldReader<PAM_1>;
impl PAM_1_R {
///Get enumerated values variant
#[inline(always)]
pub const fn variant(&self) -> Option<PAM_1> {
match self.bits {
0 => Some(PAM_1::RightAlignedZeroPadded),
1 => Some(PAM_1::RightAlignedSignExtended),
2 => Some(PAM_1::Fifo),
_ => None,
}
}
///Source data is transferred as right aligned, padded with 0s up to the destination data width
#[inline(always)]
pub fn is_right_aligned_zero_padded(&self) -> bool {
*self == PAM_1::RightAlignedZeroPadded
}
///Source data is transferred as right aligned, sign extended up to the destination data width
#[inline(always)]
pub fn is_right_aligned_sign_extended(&self) -> bool {
*self == PAM_1::RightAlignedSignExtended
}
///Source data are FIFO queued and packed at the destination data width, in little endian order, before a destination transfer
#[inline(always)]
pub fn is_fifo(&self) -> bool {
*self == PAM_1::Fifo
}
}
///Field `PAM_1` writer - PAM value when destination data width is higher than source data width
pub type PAM_1_W<'a, REG> = crate::FieldWriter<'a, REG, 2, PAM_1>;
impl<'a, REG> PAM_1_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
///Source data is transferred as right aligned, padded with 0s up to the destination data width
#[inline(always)]
pub fn right_aligned_zero_padded(self) -> &'a mut crate::W<REG> {
self.variant(PAM_1::RightAlignedZeroPadded)
}
///Source data is transferred as right aligned, sign extended up to the destination data width
#[inline(always)]
pub fn right_aligned_sign_extended(self) -> &'a mut crate::W<REG> {
self.variant(PAM_1::RightAlignedSignExtended)
}
///Source data are FIFO queued and packed at the destination data width, in little endian order, before a destination transfer
#[inline(always)]
pub fn fifo(self) -> &'a mut crate::W<REG> {
self.variant(PAM_1::Fifo)
}
}
/**PAM value when source data width is higher than destination data width
Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PAM_2 {
///0: Source data is transferred as right aligned, left-truncated down to the destination data width
RightAlignedLeftTruncated = 0,
///1: Source data is transferred as left-aligned, right-truncated down to the destination data width
LeftAlignedRightTruncated = 1,
///2: Source data are FIFO queued and unpacked at the destination data width, in little endian order
Fifo = 2,
}
impl From<PAM_2> for u8 {
#[inline(always)]
fn from(variant: PAM_2) -> Self {
variant as _
}
}
impl crate::FieldSpec for PAM_2 {
type Ux = u8;
}
impl crate::IsEnum for PAM_2 {}
///Field `PAM_2` reader - PAM value when source data width is higher than destination data width
pub type PAM_2_R = crate::FieldReader<PAM_2>;
impl PAM_2_R {
///Get enumerated values variant
#[inline(always)]
pub const fn variant(&self) -> Option<PAM_2> {
match self.bits {
0 => Some(PAM_2::RightAlignedLeftTruncated),
1 => Some(PAM_2::LeftAlignedRightTruncated),
2 => Some(PAM_2::Fifo),
_ => None,
}
}
///Source data is transferred as right aligned, left-truncated down to the destination data width
#[inline(always)]
pub fn is_right_aligned_left_truncated(&self) -> bool {
*self == PAM_2::RightAlignedLeftTruncated
}
///Source data is transferred as left-aligned, right-truncated down to the destination data width
#[inline(always)]
pub fn is_left_aligned_right_truncated(&self) -> bool {
*self == PAM_2::LeftAlignedRightTruncated
}
///Source data are FIFO queued and unpacked at the destination data width, in little endian order
#[inline(always)]
pub fn is_fifo(&self) -> bool {
*self == PAM_2::Fifo
}
}
///Field `PAM_2` writer - PAM value when source data width is higher than destination data width
pub type PAM_2_W<'a, REG> = crate::FieldWriter<'a, REG, 2, PAM_2>;
impl<'a, REG> PAM_2_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
///Source data is transferred as right aligned, left-truncated down to the destination data width
#[inline(always)]
pub fn right_aligned_left_truncated(self) -> &'a mut crate::W<REG> {
self.variant(PAM_2::RightAlignedLeftTruncated)
}
///Source data is transferred as left-aligned, right-truncated down to the destination data width
#[inline(always)]
pub fn left_aligned_right_truncated(self) -> &'a mut crate::W<REG> {
self.variant(PAM_2::LeftAlignedRightTruncated)
}
///Source data are FIFO queued and unpacked at the destination data width, in little endian order
#[inline(always)]
pub fn fifo(self) -> &'a mut crate::W<REG> {
self.variant(PAM_2::Fifo)
}
}
/**source byte exchange within the unaligned half-word of each source word If the source data width is shorter than a word, this bit is ignored. If the source data width is a word:
Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SBX {
///0: No byte-based exchanged within word
NotExchanged = 0,
///1: The two consecutive (post PAM) bytes are exchanged in each destination half-word
Exchanged = 1,
}
impl From<SBX> for bool {
#[inline(always)]
fn from(variant: SBX) -> Self {
variant as u8 != 0
}
}
///Field `SBX` reader - source byte exchange within the unaligned half-word of each source word If the source data width is shorter than a word, this bit is ignored. If the source data width is a word:
pub type SBX_R = crate::BitReader<SBX>;
impl SBX_R {
///Get enumerated values variant
#[inline(always)]
pub const fn variant(&self) -> SBX {
match self.bits {
false => SBX::NotExchanged,
true => SBX::Exchanged,
}
}
///No byte-based exchanged within word
#[inline(always)]
pub fn is_not_exchanged(&self) -> bool {
*self == SBX::NotExchanged
}
///The two consecutive (post PAM) bytes are exchanged in each destination half-word
#[inline(always)]
pub fn is_exchanged(&self) -> bool {
*self == SBX::Exchanged
}
}
///Field `SBX` writer - source byte exchange within the unaligned half-word of each source word If the source data width is shorter than a word, this bit is ignored. If the source data width is a word:
pub type SBX_W<'a, REG> = crate::BitWriter<'a, REG, SBX>;
impl<'a, REG> SBX_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
///No byte-based exchanged within word
#[inline(always)]
pub fn not_exchanged(self) -> &'a mut crate::W<REG> {
self.variant(SBX::NotExchanged)
}
///The two consecutive (post PAM) bytes are exchanged in each destination half-word
#[inline(always)]
pub fn exchanged(self) -> &'a mut crate::W<REG> {
self.variant(SBX::Exchanged)
}
}
/**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.
Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SAP {
///0: Port 0 (AHB) allocated
Port0 = 0,
///1: Port 1 (AHB) allocated
Port1 = 1,
}
impl From<SAP> for bool {
#[inline(always)]
fn from(variant: SAP) -> Self {
variant as u8 != 0
}
}
///Field `SAP` reader - 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.
pub type SAP_R = crate::BitReader<SAP>;
impl SAP_R {
///Get enumerated values variant
#[inline(always)]
pub const fn variant(&self) -> SAP {
match self.bits {
false => SAP::Port0,
true => SAP::Port1,
}
}
///Port 0 (AHB) allocated
#[inline(always)]
pub fn is_port0(&self) -> bool {
*self == SAP::Port0
}
///Port 1 (AHB) allocated
#[inline(always)]
pub fn is_port1(&self) -> bool {
*self == SAP::Port1
}
}
///Field `SAP` writer - 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.
pub type SAP_W<'a, REG> = crate::BitWriter<'a, REG, SAP>;
impl<'a, REG> SAP_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
///Port 0 (AHB) allocated
#[inline(always)]
pub fn port0(self) -> &'a mut crate::W<REG> {
self.variant(SAP::Port0)
}
///Port 1 (AHB) allocated
#[inline(always)]
pub fn port1(self) -> &'a mut crate::W<REG> {
self.variant(SAP::Port1)
}
}
///Field `SSEC` reader - security attribute of the GPDMA transfer from the source If GPDMA_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 GPDMA_SECCFGR.SECx =1 . A secure write is ignored when GPDMA_SECCFGR.SECx = 0. When GPDMA_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.
pub type SSEC_R = crate::BitReader;
///Field `SSEC` writer - security attribute of the GPDMA transfer from the source If GPDMA_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 GPDMA_SECCFGR.SECx =1 . A secure write is ignored when GPDMA_SECCFGR.SECx = 0. When GPDMA_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.
pub type SSEC_W<'a, REG> = crate::BitWriter<'a, REG>;
/**Field `DDW_LOG2` reader - 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 GPDMA_CxDAR\[2:0\]
and address offset GPDMA_CxTR3.DAO\[2:0\], versus DDW_LOG2\[1:0\]). Otherwise a user setting error is reported and no transfer is issued.*/
pub use SDW_LOG2_R as DDW_LOG2_R;
/**Field `DDW_LOG2` writer - 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 GPDMA_CxDAR\[2:0\]
and address offset GPDMA_CxTR3.DAO\[2:0\], versus DDW_LOG2\[1:0\]). Otherwise a user setting error is reported and no transfer is issued.*/
pub use SDW_LOG2_W as DDW_LOG2_W;
///Field `DINC` reader - destination incrementing burst The destination address, pointed by GPDMA_CxDAR, 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.
pub use SINC_R as DINC_R;
///Field `DINC` writer - destination incrementing burst The destination address, pointed by GPDMA_CxDAR, 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.
pub use SINC_W as DINC_W;
/**Field `DBL_1` reader - 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_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 singles/bursts, but the data integrity is guaranteed.*/
pub type DBL_1_R = crate::FieldReader;
/**Field `DBL_1` writer - 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_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 singles/bursts, but the data integrity is guaranteed.*/
pub type DBL_1_W<'a, REG> = crate::FieldWriter<'a, REG, 6, u8, crate::Safe>;
///Field `DBX` reader - destination byte exchange If the destination data size is a byte, this bit is ignored. If the destination data size is not a byte:
pub use SBX_R as DBX_R;
///Field `DBX` writer - destination byte exchange If the destination data size is a byte, this bit is ignored. If the destination data size is not a byte:
pub use SBX_W as DBX_W;
/**destination half-word exchange If the destination data size is shorter than a word, this bit is ignored. If the destination data size is a word:
Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DHX {
///0: No halfword-based exchange within word
NotExchanged = 0,
///1: The two consecutive (post PAM) half-words are exchanged in each destination word
Exchanged = 1,
}
impl From<DHX> for bool {
#[inline(always)]
fn from(variant: DHX) -> Self {
variant as u8 != 0
}
}
///Field `DHX` reader - destination half-word exchange If the destination data size is shorter than a word, this bit is ignored. If the destination data size is a word:
pub type DHX_R = crate::BitReader<DHX>;
impl DHX_R {
///Get enumerated values variant
#[inline(always)]
pub const fn variant(&self) -> DHX {
match self.bits {
false => DHX::NotExchanged,
true => DHX::Exchanged,
}
}
///No halfword-based exchange within word
#[inline(always)]
pub fn is_not_exchanged(&self) -> bool {
*self == DHX::NotExchanged
}
///The two consecutive (post PAM) half-words are exchanged in each destination word
#[inline(always)]
pub fn is_exchanged(&self) -> bool {
*self == DHX::Exchanged
}
}
///Field `DHX` writer - destination half-word exchange If the destination data size is shorter than a word, this bit is ignored. If the destination data size is a word:
pub type DHX_W<'a, REG> = crate::BitWriter<'a, REG, DHX>;
impl<'a, REG> DHX_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
///No halfword-based exchange within word
#[inline(always)]
pub fn not_exchanged(self) -> &'a mut crate::W<REG> {
self.variant(DHX::NotExchanged)
}
///The two consecutive (post PAM) half-words are exchanged in each destination word
#[inline(always)]
pub fn exchanged(self) -> &'a mut crate::W<REG> {
self.variant(DHX::Exchanged)
}
}
///Field `DAP` reader - 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.
pub use SAP_R as DAP_R;
///Field `DAP` writer - 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.
pub use SAP_W as DAP_W;
///Field `DSEC` reader - security attribute of the GPDMA transfer to the destination If GPDMA_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 GPDMA_SECCFGR.SECx = 1. A secure write is ignored when GPDMA_SECCFGR.SECx = 0. When GPDMA_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.
pub type DSEC_R = crate::BitReader;
///Field `DSEC` writer - security attribute of the GPDMA transfer to the destination If GPDMA_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 GPDMA_SECCFGR.SECx = 1. A secure write is ignored when GPDMA_SECCFGR.SECx = 0. When GPDMA_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.
pub type DSEC_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
/**Bits 0:1 - 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 (GPDMA_CxBR1.BNDT\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and no transfer is issued. A source burst transfer must have an aligned address with its data width (start address GPDMA_CxSAR\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and none transfer is issued.*/
#[inline(always)]
pub fn sdw_log2(&self) -> SDW_LOG2_R {
SDW_LOG2_R::new((self.bits & 3) as u8)
}
///Bit 3 - source incrementing burst The source address, pointed by GPDMA_CxSAR, 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.
#[inline(always)]
pub fn sinc(&self) -> SINC_R {
SINC_R::new(((self.bits >> 3) & 1) != 0)
}
/**Bits 4:9 - 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 singles/bursts, but the data integrity is guaranteed.*/
#[inline(always)]
pub fn sbl_1(&self) -> SBL_1_R {
SBL_1_R::new(((self.bits >> 4) & 0x3f) as u8)
}
/**Bits 11:12 - padding/alignment mode If DDW_LOG2\[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, in the following enumerated values, the condition PAM_1 is when destination data width is higher that source data width, and the condition PAM_2 is when destination data width is higher than 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 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: If the transfer from the source peripheral is configured with peripheral flow-control mode (SWREQ = 0 and PFREQ = 1 and DREQ = 0), and if the destination data width > the source data width, packing is not supported.*/
#[inline(always)]
pub fn pam(&self) -> PAM_R {
PAM_R::new(((self.bits >> 11) & 3) as u8)
}
///Bits 11:12 - PAM value when destination data width is higher than source data width
#[inline(always)]
pub fn pam_1(&self) -> PAM_1_R {
PAM_1_R::new(((self.bits >> 11) & 3) as u8)
}
///Bits 11:12 - PAM value when source data width is higher than destination data width
#[inline(always)]
pub fn pam_2(&self) -> PAM_2_R {
PAM_2_R::new(((self.bits >> 11) & 3) as u8)
}
///Bit 13 - source byte exchange within the unaligned half-word of each source word If the source data width is shorter than a word, this bit is ignored. If the source data width is a word:
#[inline(always)]
pub fn sbx(&self) -> SBX_R {
SBX_R::new(((self.bits >> 13) & 1) != 0)
}
///Bit 14 - 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.
#[inline(always)]
pub fn sap(&self) -> SAP_R {
SAP_R::new(((self.bits >> 14) & 1) != 0)
}
///Bit 15 - security attribute of the GPDMA transfer from the source If GPDMA_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 GPDMA_SECCFGR.SECx =1 . A secure write is ignored when GPDMA_SECCFGR.SECx = 0. When GPDMA_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.
#[inline(always)]
pub fn ssec(&self) -> SSEC_R {
SSEC_R::new(((self.bits >> 15) & 1) != 0)
}
/**Bits 16:17 - 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 GPDMA_CxDAR\[2:0\]
and address offset GPDMA_CxTR3.DAO\[2:0\], versus DDW_LOG2\[1:0\]). Otherwise a user setting error is reported and no transfer is issued.*/
#[inline(always)]
pub fn ddw_log2(&self) -> DDW_LOG2_R {
DDW_LOG2_R::new(((self.bits >> 16) & 3) as u8)
}
///Bit 19 - destination incrementing burst The destination address, pointed by GPDMA_CxDAR, 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.
#[inline(always)]
pub fn dinc(&self) -> DINC_R {
DINC_R::new(((self.bits >> 19) & 1) != 0)
}
/**Bits 20:25 - 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_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 singles/bursts, but the data integrity is guaranteed.*/
#[inline(always)]
pub fn dbl_1(&self) -> DBL_1_R {
DBL_1_R::new(((self.bits >> 20) & 0x3f) as u8)
}
///Bit 26 - destination byte exchange If the destination data size is a byte, this bit is ignored. If the destination data size is not a byte:
#[inline(always)]
pub fn dbx(&self) -> DBX_R {
DBX_R::new(((self.bits >> 26) & 1) != 0)
}
///Bit 27 - destination half-word exchange If the destination data size is shorter than a word, this bit is ignored. If the destination data size is a word:
#[inline(always)]
pub fn dhx(&self) -> DHX_R {
DHX_R::new(((self.bits >> 27) & 1) != 0)
}
///Bit 30 - 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.
#[inline(always)]
pub fn dap(&self) -> DAP_R {
DAP_R::new(((self.bits >> 30) & 1) != 0)
}
///Bit 31 - security attribute of the GPDMA transfer to the destination If GPDMA_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 GPDMA_SECCFGR.SECx = 1. A secure write is ignored when GPDMA_SECCFGR.SECx = 0. When GPDMA_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.
#[inline(always)]
pub fn dsec(&self) -> DSEC_R {
DSEC_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("C5TR1")
.field("sdw_log2", &self.sdw_log2())
.field("sinc", &self.sinc())
.field("sbl_1", &self.sbl_1())
.field("pam", &self.pam())
.field("sbx", &self.sbx())
.field("sap", &self.sap())
.field("ssec", &self.ssec())
.field("ddw_log2", &self.ddw_log2())
.field("dinc", &self.dinc())
.field("dbl_1", &self.dbl_1())
.field("dbx", &self.dbx())
.field("dhx", &self.dhx())
.field("dap", &self.dap())
.field("dsec", &self.dsec())
.field("pam_1", &self.pam_1())
.field("pam_2", &self.pam_2())
.finish()
}
}
impl W {
/**Bits 0:1 - 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 (GPDMA_CxBR1.BNDT\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and no transfer is issued. A source burst transfer must have an aligned address with its data width (start address GPDMA_CxSAR\[2:0\]
versus SDW_LOG2\[1:0\]). Otherwise, a user setting error is reported and none transfer is issued.*/
#[inline(always)]
#[must_use]
pub fn sdw_log2(&mut self) -> SDW_LOG2_W<C5TR1rs> {
SDW_LOG2_W::new(self, 0)
}
///Bit 3 - source incrementing burst The source address, pointed by GPDMA_CxSAR, 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.
#[inline(always)]
#[must_use]
pub fn sinc(&mut self) -> SINC_W<C5TR1rs> {
SINC_W::new(self, 3)
}
/**Bits 4:9 - 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 singles/bursts, but the data integrity is guaranteed.*/
#[inline(always)]
#[must_use]
pub fn sbl_1(&mut self) -> SBL_1_W<C5TR1rs> {
SBL_1_W::new(self, 4)
}
/**Bits 11:12 - padding/alignment mode If DDW_LOG2\[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, in the following enumerated values, the condition PAM_1 is when destination data width is higher that source data width, and the condition PAM_2 is when destination data width is higher than 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 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: If the transfer from the source peripheral is configured with peripheral flow-control mode (SWREQ = 0 and PFREQ = 1 and DREQ = 0), and if the destination data width > the source data width, packing is not supported.*/
#[inline(always)]
#[must_use]
pub fn pam(&mut self) -> PAM_W<C5TR1rs> {
PAM_W::new(self, 11)
}
///Bits 11:12 - PAM value when destination data width is higher than source data width
#[inline(always)]
#[must_use]
pub fn pam_1(&mut self) -> PAM_1_W<C5TR1rs> {
PAM_1_W::new(self, 11)
}
///Bits 11:12 - PAM value when source data width is higher than destination data width
#[inline(always)]
#[must_use]
pub fn pam_2(&mut self) -> PAM_2_W<C5TR1rs> {
PAM_2_W::new(self, 11)
}
///Bit 13 - source byte exchange within the unaligned half-word of each source word If the source data width is shorter than a word, this bit is ignored. If the source data width is a word:
#[inline(always)]
#[must_use]
pub fn sbx(&mut self) -> SBX_W<C5TR1rs> {
SBX_W::new(self, 13)
}
///Bit 14 - 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.
#[inline(always)]
#[must_use]
pub fn sap(&mut self) -> SAP_W<C5TR1rs> {
SAP_W::new(self, 14)
}
///Bit 15 - security attribute of the GPDMA transfer from the source If GPDMA_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 GPDMA_SECCFGR.SECx =1 . A secure write is ignored when GPDMA_SECCFGR.SECx = 0. When GPDMA_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.
#[inline(always)]
#[must_use]
pub fn ssec(&mut self) -> SSEC_W<C5TR1rs> {
SSEC_W::new(self, 15)
}
/**Bits 16:17 - 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 GPDMA_CxDAR\[2:0\]
and address offset GPDMA_CxTR3.DAO\[2:0\], versus DDW_LOG2\[1:0\]). Otherwise a user setting error is reported and no transfer is issued.*/
#[inline(always)]
#[must_use]
pub fn ddw_log2(&mut self) -> DDW_LOG2_W<C5TR1rs> {
DDW_LOG2_W::new(self, 16)
}
///Bit 19 - destination incrementing burst The destination address, pointed by GPDMA_CxDAR, 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.
#[inline(always)]
#[must_use]
pub fn dinc(&mut self) -> DINC_W<C5TR1rs> {
DINC_W::new(self, 19)
}
/**Bits 20:25 - 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_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 singles/bursts, but the data integrity is guaranteed.*/
#[inline(always)]
#[must_use]
pub fn dbl_1(&mut self) -> DBL_1_W<C5TR1rs> {
DBL_1_W::new(self, 20)
}
///Bit 26 - destination byte exchange If the destination data size is a byte, this bit is ignored. If the destination data size is not a byte:
#[inline(always)]
#[must_use]
pub fn dbx(&mut self) -> DBX_W<C5TR1rs> {
DBX_W::new(self, 26)
}
///Bit 27 - destination half-word exchange If the destination data size is shorter than a word, this bit is ignored. If the destination data size is a word:
#[inline(always)]
#[must_use]
pub fn dhx(&mut self) -> DHX_W<C5TR1rs> {
DHX_W::new(self, 27)
}
///Bit 30 - 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.
#[inline(always)]
#[must_use]
pub fn dap(&mut self) -> DAP_W<C5TR1rs> {
DAP_W::new(self, 30)
}
///Bit 31 - security attribute of the GPDMA transfer to the destination If GPDMA_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 GPDMA_SECCFGR.SECx = 1. A secure write is ignored when GPDMA_SECCFGR.SECx = 0. When GPDMA_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.
#[inline(always)]
#[must_use]
pub fn dsec(&mut self) -> DSEC_W<C5TR1rs> {
DSEC_W::new(self, 31)
}
}
/**GPDMA channel 5 transfer register 1
You can [`read`](crate::Reg::read) this register and get [`c5tr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`c5tr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
See register [structure](https://stm32-rs.github.io/stm32-rs/STM32H573.html#GPDMA1:C5TR1)*/
pub struct C5TR1rs;
impl crate::RegisterSpec for C5TR1rs {
type Ux = u32;
}
///`read()` method returns [`c5tr1::R`](R) reader structure
impl crate::Readable for C5TR1rs {}
///`write(|w| ..)` method takes [`c5tr1::W`](W) writer structure
impl crate::Writable for C5TR1rs {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
///`reset()` method sets C5TR1 to value 0
impl crate::Resettable for C5TR1rs {
const RESET_VALUE: u32 = 0;
}