Source code file for eCAP module. More...
Go to the source code of this file.
Functions | |
__interrupt void | eCAP1_isr (void) |
Interrupt Service Routine of eCAP1. More... | |
__interrupt void | eCAP2_isr (void) |
Interrupt Service Routine of eCAP2. More... | |
__interrupt void | eCAP3_isr (void) |
Interrupt Service Routine of eCAP3. More... | |
__interrupt void | eCAP4_isr (void) |
Interrupt Service Routine of eCAP4. More... | |
__interrupt void | eCAP5_isr (void) |
Interrupt Service Routine of eCAP5. More... | |
__interrupt void | eCAP6_isr (void) |
Interrupt Service Routine of eCAP6. More... | |
int16 | init_eCAP (Uint16 gpio) |
Init eCAP-Pin . More... | |
int16 | eCAP_configureInterrupt (Uint16 gpio, void *isr, Uint16 event) |
Interrupt on eCAP-Pin . More... | |
int16 | eCAP_pwmOutput (Uint16 gpio, Uint32 frequency, Uint16 dutycycle) |
PWM-Output on eCAP-Pin . More... | |
int64 | eCAP_getFrequency (Uint16 gpio) |
Applied frequency on eCAP-Pin . More... | |
int16 | eCAP_forceTimerOverflowInterrupt (Uint16 gpio) |
Force eCAP Timer overflow for setting frequency to 0. More... | |
Variables | |
Uint32 | g_time_ecap1 =0 |
Uint32 | g_time_ecap2 =0 |
Uint32 | g_time_ecap3 =0 |
Uint32 | g_time_ecap4 =0 |
Uint32 | g_time_ecap5 =0 |
Uint32 | g_time_ecap6 =0 |
Source code file for eCAP module.
Definition in file ecap.c.
__interrupt void eCAP1_isr | ( | void | ) |
__interrupt void eCAP2_isr | ( | void | ) |
__interrupt void eCAP3_isr | ( | void | ) |
__interrupt void eCAP4_isr | ( | void | ) |
__interrupt void eCAP5_isr | ( | void | ) |
__interrupt void eCAP6_isr | ( | void | ) |
Interrupt on eCAP-Pin .
[in] | 1) GPIO pin as Uint16 --> valid value: 1, 3, 5, 7, 9, 11, 24, 25, 26, 27, 34, 37, 48, 49 2) Pointer to ISR 3) event --> valid value: 1-7 (See Technical_Reference_Manual) |
Definition at line 289 of file ecap.c.
Applied frequency on eCAP-Pin .
[in] | 1) GPIO pin as Uint16 --> valid value: 1, 3, 5, 7, 9, 11, 24, 25, 26, 27, 34, 37, 48, 49 |
Definition at line 507 of file ecap.c.
PWM-Output on eCAP-Pin .
[in] | 1) GPIO pin as Uint16 --> valid value: 1, 3, 5, 7, 9, 11, 24, 25, 26, 27, 34, 37, 48, 49 2) frequency 3) dutycycle |
Definition at line 446 of file ecap.c.
Init eCAP-Pin .
[in] | 1) GPIO pin as Uint16 --> valid value: 1, 3, 5, 7, 9, 11, 24, 25, 26, 27, 34, 37, 48, 49 |
Definition at line 45 of file ecap.c.