Timer Driver is a 16-bit timer or 32-bit timer that can operate as a free-running interval timer using dsPIC MCUs. More...
Files | |
file | sccp1.h |
This is the generated driver header file for the SCCP1-TIMER driver. | |
file | sccp2.h |
This is the generated driver header file for the SCCP2-TIMER driver. | |
file | sccp1.c |
This is the generated driver source file for SCCP1-TIMER driver. | |
file | sccp2.c |
This is the generated driver source file for SCCP2-TIMER driver. | |
file | tmr1.c |
This is the generated driver source file for TMR1 driver. | |
file | tmr1.h |
This is the generated driver header file for the TMR1 driver. | |
file | tmr1.c |
This is the generated driver source file for TMR1 driver. | |
file | tmr1.h |
This is the generated driver header file for the TMR1 driver. | |
Data Structures | |
struct | TIMER_INTERFACE |
Structure containing the function pointers of TIMER driver. More... | |
Functions | |
void | SCCP1_Timer_Initialize (void) |
Initializes the SCCP1 module. | |
void | SCCP1_Timer_Deinitialize (void) |
Deinitializes the SCCP1 to POR values. | |
void | SCCP1_Timer_Start (void) |
Starts the timer. | |
void | SCCP1_Timer_Stop (void) |
Stops the timer. | |
void | SCCP1_Timer_PeriodSet (uint32_t count) |
Sets the SCCP1-Timer period count value. | |
static uint32_t | SCCP1_Timer_PeriodGet (void) |
This inline function gets the SCCP1-Timer period count value. | |
static uint32_t | SCCP1_Timer_CounterGet (void) |
This inline function gets the SCCP1-Timer elapsed count value. | |
static uint16_t | SCCP1_Timer_Counter16BitGet (void) |
This inline function gets the SCCP1-Timer least significant 16 bit elapsed count value. | |
void | SCCP1_Timer_InterruptPrioritySet (enum INTERRUPT_PRIORITY priority) |
Sets the Interrupt Priority Value. | |
void | SCCP1_Timer_Tasks (void) |
Used in polling method of timeout event. | |
void | SCCP1_Timer_TimeoutCallbackRegister (void(*handler)(void)) |
This function can be used to override default callback and to define custom callback for SCCP1 Timeout event. | |
void | SCCP1_TimeoutCallbackRegister (void *handler) |
This function can be used to override default callback and to define custom callback for SCCP1 Timeout event. | |
void | SCCP1_TimeoutCallback (void) |
This is the default callback with weak attribute. The user can override and implement the default callback without weak attribute or can register a custom callback function using SCCP1_Timer_TimeoutCallbackRegister. | |
void | SCCP2_Timer_Initialize (void) |
Initializes the SCCP2 module. | |
void | SCCP2_Timer_Deinitialize (void) |
Deinitializes the SCCP2 to POR values. | |
void | SCCP2_Timer_Start (void) |
Starts the timer. | |
void | SCCP2_Timer_Stop (void) |
Stops the timer. | |
void | SCCP2_Timer_PeriodSet (uint32_t count) |
Sets the SCCP2-Timer period count value. | |
static uint32_t | SCCP2_Timer_PeriodGet (void) |
This inline function gets the SCCP2-Timer period count value. | |
static uint32_t | SCCP2_Timer_CounterGet (void) |
This inline function gets the SCCP2-Timer elapsed count 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_InterruptPrioritySet (enum INTERRUPT_PRIORITY priority) |
Sets the Interrupt Priority Value. | |
void | SCCP2_Timer_Tasks (void) |
Used in polling method of timeout event. | |
void | SCCP2_Timer_TimeoutCallbackRegister (void(*handler)(void)) |
This function can be used to override default callback and to define custom callback for SCCP2 Timeout event. | |
void | SCCP2_TimeoutCallbackRegister (void *handler) |
This function can be used to override default callback and to define custom callback for SCCP2 Timeout event. | |
void | SCCP2_TimeoutCallback (void) |
This is the default callback with weak attribute. The user can override and implement the default callback without weak attribute or can register a custom callback function using SCCP2_Timer_TimeoutCallbackRegister. | |
void | TMR1_Initialize (void) |
Initializes the TMR1 module. | |
void | TMR1_Deinitialize (void) |
Deinitializes the TMR1 to POR values. | |
void | TMR1_Tasks (void) |
This function is used to implement the tasks for polled implementations. | |
void | TMR1_Start (void) |
Starts the timer. | |
void | TMR1_Stop (void) |
Stops the timer. | |
void | TMR1_PeriodSet (uint32_t count) |
Sets the TMR1 period count value. | |
static uint32_t | TMR1_PeriodGet (void) |
This inline function gets the TMR1 period count value. | |
static uint32_t | TMR1_CounterGet (void) |
This inline function gets the TMR1 elapsed time value. | |
static uint16_t | TMR1_Counter16BitGet (void) |
This inline function gets the 16 bit TMR1 elapsed time value. | |
void | TMR1_InterruptPrioritySet (enum INTERRUPT_PRIORITY priority) |
Sets the TMR1 interrupt priority value. | |
void | TMR1_TimeoutCallbackRegister (void(*handler)(void)) |
This function can be used to override default callback and to define custom callback for TMR1 Timeout event. | |
void | TMR1_TimeoutCallback (void) |
This is the default callback with weak attribute. The user can override and implement the default callback without weak attribute or can register a custom callback function using TMR1_TimeoutCallbackRegister. | |
Variables | |
const struct TIMER_INTERFACE | SPI_BusIdle_1us_Timer |
Structure object of type TIMER_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. Timer1 can be changed by the user in the TIMER user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability. | |
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 User interface. The default name e.g. Timer1 can be changed by the user in the TIMER user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability. | |
const struct TIMER_INTERFACE | Timer1 |
Structure object of type TIMER_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. Timer1 can be changed by the user in the TIMER user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability. | |
const struct TIMER_INTERFACE | Timer1 |
Structure object of type TIMER_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. Timer1 can be changed by the user in the TIMER user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability. | |
#define SPI_BusIdle_1us_Timer_Counter16BitGet SCCP1_Timer_Counter16BitGet |
#define SPI_BusIdle_1us_Timer_CounterGet SCCP1_Timer_CounterGet |
#define SPI_BusIdle_1us_Timer_Deinitialize SCCP1_Timer_Deinitialize |
#define SPI_BusIdle_1us_Timer_Initialize SCCP1_Timer_Initialize |
#define SPI_BusIdle_1us_Timer_InterruptPrioritySet SCCP1_Timer_InterruptPrioritySet |
#define SPI_BusIdle_1us_Timer_PeriodGet SCCP1_Timer_PeriodGet |
#define SPI_BusIdle_1us_Timer_PeriodSet SCCP1_Timer_PeriodSet |
#define SPI_BusIdle_1us_Timer_Start SCCP1_Timer_Start |
#define SPI_BusIdle_1us_Timer_Stop SCCP1_Timer_Stop |
#define SPI_BusIdle_1us_Timer_Tasks SCCP1_Timer_Tasks |
#define SPI_BusIdle_1us_Timer_TimeoutCallbackRegister SCCP1_Timer_TimeoutCallbackRegister |
#define SPI_Timeout_40us_Timer_Counter16BitGet SCCP2_Timer_Counter16BitGet |
#define SPI_Timeout_40us_Timer_CounterGet SCCP2_Timer_CounterGet |
#define SPI_Timeout_40us_Timer_Deinitialize SCCP2_Timer_Deinitialize |
#define SPI_Timeout_40us_Timer_Initialize SCCP2_Timer_Initialize |
#define SPI_Timeout_40us_Timer_InterruptPrioritySet SCCP2_Timer_InterruptPrioritySet |
#define SPI_Timeout_40us_Timer_PeriodGet SCCP2_Timer_PeriodGet |
#define SPI_Timeout_40us_Timer_PeriodSet SCCP2_Timer_PeriodSet |
#define SPI_Timeout_40us_Timer_Start SCCP2_Timer_Start |
#define SPI_Timeout_40us_Timer_Stop SCCP2_Timer_Stop |
#define SPI_Timeout_40us_Timer_Tasks SCCP2_Timer_Tasks |
#define SPI_Timeout_40us_Timer_TimeoutCallbackRegister SCCP2_Timer_TimeoutCallbackRegister |
#define Timer1_Counter16BitGet TMR1_Counter16BitGet |
#define Timer1_Counter16BitGet TMR1_Counter16BitGet |
#define Timer1_CounterGet TMR1_CounterGet |
#define Timer1_CounterGet TMR1_CounterGet |
#define Timer1_Deinitialize TMR1_Deinitialize |
#define Timer1_Deinitialize TMR1_Deinitialize |
#define Timer1_Initialize TMR1_Initialize |
#define Timer1_Initialize TMR1_Initialize |
#define Timer1_InterruptPrioritySet TMR1_InterruptPrioritySet |
#define Timer1_InterruptPrioritySet TMR1_InterruptPrioritySet |
#define Timer1_PeriodGet TMR1_PeriodGet |
#define Timer1_PeriodGet TMR1_PeriodGet |
#define Timer1_PeriodSet TMR1_PeriodSet |
#define Timer1_PeriodSet TMR1_PeriodSet |
#define Timer1_Start TMR1_Start |
#define Timer1_Start TMR1_Start |
#define Timer1_Tasks TMR1_Tasks |
#define Timer1_Tasks TMR1_Tasks |
#define Timer1_TimeoutCallbackRegister TMR1_TimeoutCallbackRegister |
#define Timer1_TimeoutCallbackRegister TMR1_TimeoutCallbackRegister |
#define TIMER_PERIODCOUNTSET_API_SUPPORT false |
Definition at line 53 of file timer_interface.h.
#define TIMER_PERIODCOUNTSET_API_SUPPORT false |
Definition at line 53 of file timer_interface.h.
void SCCP1_TimeoutCallback | ( | void | ) |
void SCCP1_TimeoutCallbackRegister | ( | void * | handler | ) |
|
inlinestatic |
|
inlinestatic |
void SCCP1_Timer_Deinitialize | ( | void | ) |
void SCCP1_Timer_Initialize | ( | void | ) |
void SCCP1_Timer_InterruptPrioritySet | ( | enum INTERRUPT_PRIORITY | priority | ) |
|
inlinestatic |
void SCCP1_Timer_PeriodSet | ( | uint32_t | count | ) |
void SCCP1_Timer_Start | ( | void | ) |
void SCCP1_Timer_Stop | ( | void | ) |
void SCCP1_Timer_Tasks | ( | void | ) |
void SCCP1_Timer_TimeoutCallbackRegister | ( | void(*)(void) | handler | ) |
void SCCP2_TimeoutCallback | ( | void | ) |
void SCCP2_TimeoutCallbackRegister | ( | void * | handler | ) |
|
inlinestatic |
|
inlinestatic |
void SCCP2_Timer_Deinitialize | ( | void | ) |
void SCCP2_Timer_Initialize | ( | void | ) |
void SCCP2_Timer_InterruptPrioritySet | ( | enum INTERRUPT_PRIORITY | priority | ) |
|
inlinestatic |
void SCCP2_Timer_PeriodSet | ( | uint32_t | count | ) |
void SCCP2_Timer_Start | ( | void | ) |
void SCCP2_Timer_Stop | ( | void | ) |
void SCCP2_Timer_Tasks | ( | void | ) |
void SCCP2_Timer_TimeoutCallbackRegister | ( | void(*)(void) | handler | ) |
|
inlinestatic |
|
inlinestatic |
void TMR1_Deinitialize | ( | void | ) |
void TMR1_Initialize | ( | void | ) |
void TMR1_InterruptPrioritySet | ( | enum INTERRUPT_PRIORITY | priority | ) |
|
inlinestatic |
void TMR1_PeriodSet | ( | uint32_t | count | ) |
void TMR1_Start | ( | void | ) |
none |
Definition at line 94 of file tmr1.c.
void TMR1_Stop | ( | void | ) |
none |
Definition at line 100 of file tmr1.c.
void TMR1_Tasks | ( | void | ) |
void TMR1_TimeoutCallback | ( | void | ) |
void TMR1_TimeoutCallbackRegister | ( | void(*)(void) | handler | ) |
|
extern |
|
extern |
|
extern |
|
extern |