![]() |
FuSa 8-Bit Libraries Safety Framework
|
Contains assembly API prototypes for the CCP (Configuration Change Protection) utility driver. More...
Functions | |
| void | ASM_WriteCcp8 (register8_t *regAddr, uint8_t value) |
| Writes value to a Configuration Change Protected (CCP) 8-bit register. | |
| void | ASM_WriteCcp16 (register16_t *regAddr, uint16_t value) |
| Writes value to a Configuration Change Protected (CCP) 16-bit register. | |
| void | ASM_WriteCcp24 (register32_t *regAddr, uint32_t value) |
| Writes value to a Configuration Change Protected (CCP) 24-bit register. | |
Contains assembly API prototypes for the CCP (Configuration Change Protection) utility driver.
| void ASM_WriteCcp16 | ( | register16_t * | regAddr, |
| uint16_t | value ) |
Writes value to a Configuration Change Protected (CCP) 16-bit register.
This function writes the required CCP signature to unlock CCP-protected Special Function Registers (SFRs) before writing the specified value to it. Once unlocked, the protected register must be written to within the next four CPU instructions. To ensure the CCP sequence is correctly executed, the function is implemented in assembly.
| regAddr | Address of the CCP-protected register. |
| value | Specifies the value to write to the CCP-protected register. |
| void ASM_WriteCcp24 | ( | register32_t * | regAddr, |
| uint32_t | value ) |
Writes value to a Configuration Change Protected (CCP) 24-bit register.
This function writes the required CCP signature to unlock CCP-protected Special Function Registers (SFRs) before writing the specified value to it. Once unlocked, the protected register must be written to within the next four CPU instructions. To ensure the CCP sequence is correctly executed, the function is implemented in assembly.
| regAddr | Address of the CCP-protected register. |
| value | Specifies the value to write to the CCP-protected register. |
| void ASM_WriteCcp8 | ( | register8_t * | regAddr, |
| uint8_t | value ) |
Writes value to a Configuration Change Protected (CCP) 8-bit register.
This function writes the required CCP signature to unlock CCP-protected Special Function Registers (SFRs) before writing the specified value to it. Once unlocked, the protected register must be written to within the next four CPU instructions. To ensure the CCP sequence is correctly executed, the function is implemented in assembly.
| regAddr | Address of the CCP-protected register. |
| value | Specifies the value to write to the CCP-protected register. |