46#include "timer_interface.h"
65#define SPI_Timeout_40us_Timer_Initialize SCCP2_Timer_Initialize
70#define SPI_Timeout_40us_Timer_Deinitialize SCCP2_Timer_Deinitialize
75#define SPI_Timeout_40us_Timer_Tasks SCCP2_Timer_Tasks
80#define SPI_Timeout_40us_Timer_Start SCCP2_Timer_Start
85#define SPI_Timeout_40us_Timer_Stop SCCP2_Timer_Stop
87#if TIMER_PERIODCOUNTSET_API_SUPPORT
92#define SPI_Timeout_40us_Timer_PeriodCountSet SCCP2_Timer_PeriodCountSet
99#define SPI_Timeout_40us_Timer_PeriodSet SCCP2_Timer_PeriodSet
104#define SPI_Timeout_40us_Timer_PeriodGet SCCP2_Timer_PeriodGet
109#define SPI_Timeout_40us_Timer_CounterGet SCCP2_Timer_CounterGet
114#define SPI_Timeout_40us_Timer_Counter16BitGet SCCP2_Timer_Counter16BitGet
119#define SPI_Timeout_40us_Timer_InterruptPrioritySet SCCP2_Timer_InterruptPrioritySet
125#define SPI_Timeout_40us_Timer_TimeoutCallbackRegister SCCP2_Timer_TimeoutCallbackRegister
181 if(CCP2CON1Lbits.T32 == 1)
183 return (((uint32_t)CCP2PRH << 16U) | (CCP2PRL) );
187 return (uint32_t) CCP2PRL;
199 if(CCP2CON1Lbits.T32 == 1)
201 return (((uint32_t)CCP2TMRH << 16U) | CCP2TMRL);
205 return (uint32_t)CCP2TMRL;
253void SCCP2_TimeoutCallbackRegister(
void* handler)__attribute__((deprecated(
"\nThis will be removed in future MCC releases. \nUse SCCP2_Timer_TimeoutCallbackRegister instead. ")));
266#if TIMER_PERIODCOUNTSET_API_SUPPORT
274void SCCP2_Timer_PeriodCountSet(
size_t count)__attribute__((deprecated (
"\nThis will be removed in future MCC releases. \nUse SCCP2_Timer_PeriodSet instead. ")));
void SCCP2_Timer_PeriodCountSet(size_t count)
static uint32_t SCCP2_Timer_PeriodGet(void)
This inline function gets the SCCP2-Timer period count value.
const struct TIMER_INTERFACE SPI_Timeout_40us_Timer
Structure object of type TIMER_INTERFACE with the custom name given by the user in the Melody Driver ...
void SCCP2_Timer_Tasks(void)
Used in polling method of timeout event.
void SCCP2_Timer_Start(void)
Starts the timer.
static uint32_t SCCP2_Timer_CounterGet(void)
This inline function gets the SCCP2-Timer elapsed count value.
void SCCP2_Timer_TimeoutCallbackRegister(void(*handler)(void))
This function can be used to override default callback and to define custom callback for SCCP2 Timeou...
void SCCP2_Timer_Initialize(void)
Initializes the SCCP2 module.
void SCCP2_Timer_Stop(void)
Stops the timer.
void SCCP2_Timer_InterruptPrioritySet(enum INTERRUPT_PRIORITY priority)
Sets the Interrupt Priority Value.
static uint16_t SCCP2_Timer_Counter16BitGet(void)
This inline function gets the SCCP2-Timer least significant 16 bit elapsed count value.
void SCCP2_Timer_PeriodSet(uint32_t count)
Sets the SCCP2-Timer period count value.
void SCCP2_TimeoutCallback(void)
This is the default callback with weak attribute. The user can override and implement the default cal...
void SCCP2_TimeoutCallbackRegister(void *handler)
This function can be used to override default callback and to define custom callback for SCCP2 Timeou...
void SCCP2_Timer_Deinitialize(void)
Deinitializes the SCCP2 to POR values.
Structure containing the function pointers of TIMER driver.