59 .OutputModeSet = NULL,
98 CCP3CON1Lbits.CCPON = 1;
103 CCP3CON1Lbits.CCPON = 0;
123 CCP3CON1Lbits.CCPON = 1;
129 CCP3CON1Lbits.CCPON = 0;
134 CCP3PRL = periodCount;
139 CCP3RB = dutyCycleCount;
144 CCP3STATLbits.TRSET = 1;
163 if(IFS2bits.CCT3IF == 1)
168 (*SCCP3_PWMHandler)();
void __attribute__((weak))
static void(* SCCP3_PWMHandler)(void)
void SCCP3_PWM_PeriodSet(size_t periodCount)
Sets the cycle width.
void SCCP3_PWM_Callback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
void SCCP3_PWM_Disable(void)
Disables the SCCP3 module.
void SCCP3_PWM_DutyCycleSet(size_t dutyCycleCount)
Sets the ON pulse width.
void SCCP3_PWM_Enable(void)
Enables the SCCP3 module.
void SCCP3_PWM_Deinitialize(void)
Deinitializes the SCCP3 to POR values.
void SCCP3_PWM_Initialize(void)
Initializes the SCCP3 Pulse driver. This function must be called before any other SCCP3 function is c...
void SCCP3_PWM_Tasks(void)
This function is used to implement the tasks for polled implementations.
void SCCP3_PWM_SoftwareTriggerSet(void)
This function sets the manual trigger.
const struct PWM_INTERFACE FAN_PWM
Structure object of type PWM_INTERFACE with the custom name given by the user in the Melody Driver Us...
void SCCP3_PWM_CallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for SCCP3 PWM ev...
Structure containing the function pointers of PWM generator driver.
void(* Initialize)(void)
Pointer to SCCPx_PWM_Initialize e.g. SCCP1_PWM_Initialize.