High-Resolution Pulse-Width Modulated (PWM) with Fine Edge Placement using dsPIC MCUs.
More...
|
void | PWM_Initialize (void) |
| Initializes PWM module, using the given initialization data.
|
|
void | PWM_Deinitialize (void) |
| Deinitializes the PWM to POR values.
|
|
static void | PWM_GeneratorEnable (enum PWM_GENERATOR genNum) |
| This inline function enables the specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_GeneratorDisable (enum PWM_GENERATOR genNum) |
| This inline function disables the specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_ModeSet (enum PWM_GENERATOR genNum, enum PWM_MODES mode) |
| This inline function sets the operating mode of specific PWM generator selected
by the argument PWM_GENERATOR.
|
|
static void | PWM_Enable (void) |
| This inline function will enable all the generators of PWM module.
|
|
static void | PWM_Disable (void) |
| This inline function will disable all the generators of PWM module.
|
|
static void | PWM_MasterPeriodSet (uint16_t masterPeriod) |
| This inline function sets the period value in count for the Master Time Base generator.
|
|
static void | PWM_MasterDutyCycleSet (uint16_t masterDutyCycle) |
| This inline function sets the PWM master duty cycle register.
|
|
static void | PWM_MasterPhaseSet (uint16_t masterPhase) |
| This inline function sets the phase value in count for the Master Time Base generator.
|
|
static void | PWM_PeriodSet (enum PWM_GENERATOR genNum, uint16_t period) |
| This inline function sets the period value in count for the PWM generator specific Time Base.
|
|
static void | PWM_DutyCycleSet (enum PWM_GENERATOR genNum, uint16_t dutyCycle) |
| This inline function sets the PWM generator specific duty cycle register.
|
|
static void | PWM_PhaseSelect (enum PWM_GENERATOR genNum, enum PWM_SOURCE_SELECT source) |
| This inline function selects the PWM generator source for Phase.
|
|
static void | PWM_PhaseSet (enum PWM_GENERATOR genNum, uint16_t phase) |
| This inline function sets the phase value in count for the PWM generator specific Time Base.
|
|
static void | PWM_OverrideDataSet (enum PWM_GENERATOR genNum, uint16_t overrideData) |
| This inline function updates PWM override data bits with the requested value for a specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_OverrideDataHighSet (enum PWM_GENERATOR genNum, bool overrideDataHigh) |
| This inline function updates PWM override high data bit with the requested value for a specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_OverrideDataLowSet (enum PWM_GENERATOR genNum, bool overrideDataLow) |
| This inline function updates PWM override low data bit with the requested value for a specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static uint16_t | PWM_OverrideDataGet (enum PWM_GENERATOR genNum) |
| This inline function gets PWM override value for the PWM Generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_OverrideHighEnable (enum PWM_GENERATOR genNum) |
| This inline function enables PWM override on PWMH output for specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_OverrideLowEnable (enum PWM_GENERATOR genNum) |
| This inline function enables PWM override on PWML output for specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_OverrideHighDisable (enum PWM_GENERATOR genNum) |
| This inline function disables PWM override on PWMH output for specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_OverrideLowDisable (enum PWM_GENERATOR genNum) |
| This inline function disables PWM override on PWML output for specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_DeadTimeLowSet (enum PWM_GENERATOR genNum, uint16_t deadtimeLow) |
| This inline function updates PWM Deadtime low register with the requested value for a specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_DeadTimeHighSet (enum PWM_GENERATOR genNum, uint16_t deadtimeHigh) |
| This inline function updates PWM Deadtime high register with the requested value for a specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_DeadTimeSet (enum PWM_GENERATOR genNum, uint16_t deadtime) |
| This inline function updates PWM Deadtime low and high register with the requested value for a specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_TriggerCompareValueSet (enum PWM_GENERATOR genNum, uint16_t trigCompValue) |
| This inline function sets the PWM trigger compare value in count for the PWM Generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_GeneratorInterruptEnable (enum PWM_GENERATOR genNum, enum PWM_GENERATOR_INTERRUPT interrupt) |
| This inline function enables interrupt requests for the PWM Generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_GeneratorInterruptDisable (enum PWM_GENERATOR genNum, enum PWM_GENERATOR_INTERRUPT interrupt) |
| This inline function disables interrupt requests for the PWM Generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_GeneratorEventStatusClear (enum PWM_GENERATOR genNum, enum PWM_GENERATOR_INTERRUPT interrupt) |
| This inline function clears the PWM interrupt status for the PWM Generator selected by the argument PWM_GENERATOR.
|
|
static bool | PWM_GeneratorEventStatusGet (enum PWM_GENERATOR genNum, enum PWM_GENERATOR_INTERRUPT interrupt) |
| This inline function gets the PWM interrupt status for the PWM Generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_SoftwareUpdateRequest (enum PWM_GENERATOR genNum) |
| This inline function requests to update the data registers for specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static bool | PWM_SoftwareUpdatePending (enum PWM_GENERATOR genNum) |
| This inline function gets the status of the update request for specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_TriggerACompareValueSet (enum PWM_GENERATOR genNum, uint16_t trigA) |
| This inline function sets the Trigger A compare value in count for a specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_TriggerBCompareValueSet (enum PWM_GENERATOR genNum, uint16_t trigB) |
| This inline function sets the Trigger B compare value in count for a specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_TriggerCCompareValueSet (enum PWM_GENERATOR genNum, uint16_t trigC) |
| This inline function sets the Trigger C compare value in count for a specific PWM generator selected by the argument PWM_GENERATOR.
|
|
static void | PWM_Trigger1Enable (enum PWM_GENERATOR genNum, enum PWM_TRIGGER_COMPARE compareRegister) |
| This inline function enables ADC trigger 1 for the specific compare register selected by the argument PWM_GENERATOR.
|
|
static void | PWM_Trigger1Disable (enum PWM_GENERATOR genNum, enum PWM_TRIGGER_COMPARE compareRegister) |
| This inline function disables ADC trigger 1 for the specific compare register selected by the argument PWM_GENERATOR.
|
|
static void | PWM_Trigger2Enable (enum PWM_GENERATOR genNum, enum PWM_TRIGGER_COMPARE compareRegister) |
| This inline function enables ADC trigger 2 for the specific compare register selected by the argument PWM_GENERATOR.
|
|
static void | PWM_Trigger2Disable (enum PWM_GENERATOR genNum, enum PWM_TRIGGER_COMPARE compareRegister) |
| This inline function disables ADC trigger 2 for the specific compare register selected by the argument PWM_GENERATOR.
|
|
static void | PWM_FaultModeLatchClear (enum PWM_GENERATOR genNum) |
| This inline function clears the status of PWM latched fault mode for the PWM Generator selected by the argument PWM_GENERATOR.
|
|
void | PWM_GeneratorEOCEventCallbackRegister (void(*callback)(enum PWM_GENERATOR genNum)) |
| This function can be used to override default callback PWM_GeneratorEOCEventCallback and to define custom callback for PWM EOCEvent event.
|
|
void | PWM_GeneratorEOCEventCallback (enum PWM_GENERATOR genNum) |
| 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 PWM_EOCEventCallbackRegister.
|
|
void | PWM_GeneratorTasks (enum PWM_GENERATOR intGen) |
| This is a tasks function for PWM1.
|
|