Lines Matching refs:sectorMask
454 bool FlashCtl_unprotectSector(uint_fast8_t memorySpace, uint32_t sectorMask) in FlashCtl_unprotectSector() argument
459 FLCTL->BANK0_MAIN_WEPROT &= ~sectorMask; in FlashCtl_unprotectSector()
462 FLCTL->BANK1_MAIN_WEPROT &= ~sectorMask; in FlashCtl_unprotectSector()
465 ASSERT(sectorMask <= 0x04); in FlashCtl_unprotectSector()
466 FLCTL->BANK0_INFO_WEPROT &= ~sectorMask; in FlashCtl_unprotectSector()
469 ASSERT(sectorMask <= 0x04); in FlashCtl_unprotectSector()
470 FLCTL->BANK1_INFO_WEPROT &= ~sectorMask; in FlashCtl_unprotectSector()
478 return !FlashCtl_isSectorProtected(memorySpace, sectorMask); in FlashCtl_unprotectSector()
481 bool FlashCtl_protectSector(uint_fast8_t memorySpace, uint32_t sectorMask) in FlashCtl_protectSector() argument
486 FLCTL->BANK0_MAIN_WEPROT |= sectorMask; in FlashCtl_protectSector()
489 FLCTL->BANK1_MAIN_WEPROT |= sectorMask; in FlashCtl_protectSector()
492 ASSERT(sectorMask <= 0x04); in FlashCtl_protectSector()
493 FLCTL->BANK0_INFO_WEPROT |= sectorMask; in FlashCtl_protectSector()
496 ASSERT(sectorMask <= 0x04); in FlashCtl_protectSector()
497 FLCTL->BANK1_INFO_WEPROT |= sectorMask; in FlashCtl_protectSector()
505 return FlashCtl_isSectorProtected(memorySpace, sectorMask); in FlashCtl_protectSector()