HRPWM外设

1. void HRPWM_setPhaseShift(uint32_t base, uint32_t phaseCount);

function function:sets the phase offset

input parameters:meaning, type, optional >- ** base : meaning-epwm base; type-uint32 _ t; optional-epwm1-8 base >- ** phaseCount : meaning-phase offset value; type-uint32 _ t; Optional-0 x0-0xffffff

return parameters:>-None

2. void HRPWM_setHiResPhaseShiftOnly(uint32_t base, uint16_t hrPhaseCount);

set function function:only the phase offset high precision values

input parameters:>- ** base : meaning-epwm base; type-uint 32 _ t; optional-epwm1-8 base >- ** hrPhaseCount : meaning-phase offset high precision; type-uint16 _ t; optional-0-255

return parameters:>-None

3. void HRPWM_setTimeBasePeriod(uint32_t base, uint32_t periodCount);

function function:set the time base count period

input parameters:>- ** base : meaning-epwm base address; type-uint 32 _ t; optional-epwm1-8 base address >- ** periodCount : meaning-periodic value; type-uint 32 _ t; optional-0x0-0xffffff

return parameters:>-None

4. void HRPWM_setHiResTimeBasePeriodOnly(uint32_t base, uint16_t hrPeriodCount);

set function function:only the high precision value of the time base count period

input parameters:>- ** base : meaning-epwm base address; type-uint 32 _ t; optional-epwm1-8 base address >- ** hrPeriodCount : meaning-periodic high precision value; type-uint16 _ t; optional-0-255

return parameters:>-None

5. uint32_t HRPWM_getTimeBasePeriod(uint32_t base);

function function:gets the timebase count period value

input parameters:>- ** base **: meaning-epwm base address; type-uint32 _ t; optional-epwm1-8 base address

return parameters:>- ** uint32_t **: meaning-periodic value; type-uint32 _ t

6. uint16_t HRPWM_getHiResTimeBasePeriodOnly(uint32_t base);

obtain function function:only the high precision value of the timebase count period

input parameters:>- ** base **: meaning-epwm base address; type-uint32 _ t; optional-epwm1-8 base address

return parameters:>- ** uint16_t **: meaning-periodic high precision value; type-uint16 _ t

7. void HRPWM_setMEPEdgeSelect(uint32_t base, HRPWM_Channel channel, HRPWM_MEPEdgeMode mepEdgeMode);

function function:set MEP Edge Selection

input parameters:>- ** base : meaning-epwm base address; type-uint32 _ t; options-epwm1-8 base address >- ** channel : meaning-channel select; type-HRPWM _ Channel; Optional-0-channela, 8-channelB >- ** mepEdgeMode **: Meaning-edge mode select; Type-HRPWM _ MEPEdgeMode; Optional-0-off hrpwm, 1-rising edge, 2-falling edge, 3-double ed

return parameters:>-None

8. void HRPWM_setMEPControlMode(uint32_t base, HRPWM_Channel channel, HRPWM_MEPCtrlMode mepCtrlMode);

function function:set MEP Control Mode

input parameters:>- ** base : meaning-epwm base address; type-uint32 _ t; options-epwm1-8 base address >- ** channel : meaning-channel select; type-HRPWM _ Channel; Options-0-Channel A, 8-Channel B >- ** mepCtrlMode **: Meaning-MEP control mode selection; Type-HRPWM _ MEPCtrlMode; Options-0-Duty cycle or period control mode, 1-Phase control mode

return parameters:>-None

9. void HRPWM_setCounterCompareShadowLoadEvent(uint32_t base, HRPWM_Channel channel, HRPWM_LoadMode loadEvent);

function function:set Count Compare Shadow Load Event

input parameters:>- ** base : meaning-epwm base address; type-uint32 _ t; options-epwm1-8 base address >- ** channel : meaning-channel select; type-HRPWM _ Channel; Optional-0-Channel A, 8-Channel B >- ** loadEvent **: Meaning-Load Event Selection; Type-HRPWM _ LoadMode; Optional-0-Load if CTR = zero, 1-Load if CTR = PRD, 2-Load when CTR = zero or CTR = PRD

return parameters:>-None

10. void HRPWM_setOutputSwapMode(uint32_t base, bool enableOutputSwap);

function function:setting the Output Exchange Mode

input parameters:>- ** base : meaning-epwm base address; type-uint 32 _ t; optional-epwm1-8 base address > ** enableOutputSwap -: meaning-enable output swap; type-bool; optional-0-no swap, 1-swap

return parameters:>-None

11. void HRPWM_setChannelBOutputPath(uint32_t base, HRPWM_ChannelBOutput outputOnB);

function function:set the B channel output path

input parameters:>- ** base : meaning-epwm base; type-uint32 _ t; options-epwm1-8 base > ** outputOnB -: meaning-B channel output select; type-HRPWM _ ChannelBOutput; Optional-0-B channel signal, 1-A channel signal inverted

return parameters:>-None

12. void HRPWM_enableAutoConversion(uint32_t base);

function function:enable automatic conversion

input parameters:>- ** base **: meaning-epwm base address; type-uint32 _ t; optional-epwm1-8 base address

return parameters:>-None

13. void HRPWM_disableAutoConversion(uint32_t base);

function function:turn off automatic conversion

input parameters:>- ** base **: meaning-epwm base address; type-uint32 _ t; optional-epwm1-8 base address

return parameters:>-None

14. void HRPWM_enablePeriodControl(uint32_t base);

function function:enable cycle control

input parameters:>- ** base **: meaning-epwm base address; type-uint32 _ t; optional-epwm1-8 base address

return parameters:>-None

15. void HRPWM_disablePeriodControl(uint32_t base);

turn function function:cycle control off

input parameters:>- ** base **: meaning-epwm base address; type-uint32 _ t; optional-epwm1-8 base address

return parameters:>-None

16. void HRPWM_enablePhaseShiftLoad(uint32_t base);

function function:enable phase loading

input parameters:>- ** base **: meaning-epwm base address; type-uint32 _ t; optional-epwm1-8 base address

return parameters:>-None

17. void HRPWM_disablePhaseShiftLoad(uint32_t base);

function function:turn off phase loading

input parameters:>- ** base **: meaning-epwm base address; type-uint32 _ t; optional-epwm1-8 base address

return parameters:>-None

18. void HRPWM_setSyncPulseSource(uint32_t base, HRPWM_SyncPulseSource syncPulseSource);

function function:set the sync pulse source

input parameters:>- ** base : meaning-epwm base; type-uint32 _ t; optional-epwm1-8 base > ** syncPulseSource -: meaning-sync pulse source; type-HRPWM _ SyncPulseSource; Optional-0-CTR = PRD sync, 1-CTR = zero sync, 4-CMPCU sync, 5-CMPCD sync, 6-CMPDU sync, 7-CMPDD sync

return parameters:>-None

19. void HRPWM_setTranslatorRemainder(uint32_t base, uint16_t trremVal);

function function:sets the converter remainder

input parameters:>- ** base : meaning-epwm base address; type-uint 32 _ t; optional-epwm1-8 base address >- ** trremVal : meaning-remainder value; type-uint 16 _ t; optional-0-2047

return parameters:>-None

20. void HRPWM_setCounterCompareValue(uint32_t base, HRPWM_CounterCompareModule compModule, uint32_t compCount);

function function:set Count Comparison Value

input parameters:>- ** base : meaning-epwm base; type-uint32 _ t; optional-epwm1-8 base > ** compModule -: meaning-comparison module; type-HRPWM _ Counter Compare Module; Optional-0-module A, 4-module B >- ** compCount **: meaning-comparison value; type-uint32 _ t; optional-0 x0-0xffffff

return parameters:>-None

21. void HRPWM_setHiResCounterCompareValueOnly(uint32_t base, HRPWM_CounterCompareModule compModule, uint16_t hrCompCount);

set Count Compare High Precision function function:only

input parameters:>- ** base : meaning-epwm base; type-uint32 _ t; optional-epwm1-8 base > ** compModule -: meaning-comparison module; type-HRPWM _ Counter Compare Module; Optional-0-Module A, 4-Module B >- ** hrCompCount **: Meaning-High Precision Comparison Value; Type-uint16 _ t; Optional-0 x0-0 xff

return parameters:>-None

22. uint32_t HRPWM_getCounterCompareValue(uint32_t base, HRPWM_CounterCompareModule compModule);

function function:gets the count comparison value

input parameters:>- ** base : meaning-epwm base; type-uint32 _ t; optional-epwm1-8 base > ** compModule -: meaning-comparison module; type-HRPWM _ Counter Compare Module; Optional-0-Module A, 4-Module B

return parameters:>- ** uint32_t **: meaning-comparison value; type-uint32 _ t

23. uint16_t HRPWM_getHiResCounterCompareValueOnly(uint32_t base, HRPWM_CounterCompareModule compModule);

get function function:only count comparison high values

input parameters:>- ** base : meaning-epwm base; type-uint32 _ t; optional-epwm1-8 base > ** compModule -: meaning-comparison module; type-HRPWM _ Counter Compare Module; Optional-0-Module A, 4-Module B

return parameters:>- ** uint16_t **: meaning-high precision comparison value; type-uint16 _ t

24. void HRPWM_setRisingEdgeDelay(uint32_t base, uint32_t redCount);

function function:set rising edge delay

input parameters:>- ** base : meaning-epwm base address; type-uint 32 _ t; optional-epwm1-8 base address >- ** redCount : meaning-rising edge delay value; type-uint 32 _ t; optional-0 x0-0x1fffff

return parameters:>-None

25. void HRPWM_setHiResRisingEdgeDelayOnly(uint32_t base, uint16_t hrRedCount);

set the rising edge delay high precision value function function:only

input parameters:>- ** base : meaning-epwm base address; type-uint 32 _ t; option-epwm1-8 base address >- ** hrRedCount : meaning-rising edge delay high precision value; type-uint16 _ t; option-0x0-0x7f

return parameters:>-None

26. void HRPWM_setFallingEdgeDelay(uint32_t base, uint32_t fedCount);

function function:set falling edge delay

input parameters:>- ** base : meaning-epwm base address; type-uint 32 _ t; optional-epwm1-8 base address >- ** fedCount : meaning-falling edge delay value; type-uint 32 _ t; optional-0 x0-0x1fffff

return parameters:>-None

27. void HRPWM_setHiResFallingEdgeDelayOnly(uint32_t base, uint16_t hrFedCount);

set the falling edge delay high precision value function function:only

input parameters:>- ** base : meaning-epwm base address; type-uint 32 _ t; option-epwm1-8 base address >- ** hrFedCount : meaning-falling edge delay high precision value; type-uint16 _ t; option-0x0-0x7f

return parameters:>-None

28. void HRPWM_setMEPStep(uint32_t base, uint16_t mepCount);

function function:sets the number of MEP steps

input parameters:>- ** base : meaning-epwm base address; type-uint 32 _ t; optional-epwm1-8 base address >- ** mepCount : meaning-MEP steps; type-uint 16 _ t; optional-0-255

return parameters:>-None

29. void HRPWM_setDeadbandMEPEdgeSelect(uint32_t base, HRPWM_MEPDeadBandEdgeMode mepDBEdge);

function function:set Deadband MEP Edge Selection

input parameters:>- ** base : meaning-epwm base; type-uint32 _ t; optional-epwm1-8 base >- ** mepDBEdge : meaning-edge select; type-HRPWM _ MEPDeadBandEdgeMode; Options-0-hrpwm off, 1-dead band rising edge delay high precision value in effect, 2-dead band falling edge delay high precision value in effect, 3-dead band rising edge delay and falling edge delayed high precision values in effect

return parameters:>-None

30. void HRPWM_setRisingEdgeDelayLoadMode(uint32_t base, HRPWM_LoadMode loadEvent);

function function:sets the rising edge delay load model

input parameters:>- ** base : meaning-epwm base; type-uint32 _ t; optional-epwm1-8 base >- ** loadEvent : meaning-load event selection; type-HRPWM _ LoadMode; Optional-0-Load with CTR = zero, 1-Load with CTR = PRD, 2-Load if CTR = zero or CTR = PRD

return parameters:>-None

31. void HRPWM_setFallingEdgeDelayLoadMode(uint32_t base, HRPWM_LoadMode loadEvent);

function function:sets the falling edge delay load model

input parameters:>- ** base : meaning-epwm base; type-uint32 _ t; optional-epwm1-8 base >- ** loadEvent : meaning-load event selection; type-HRPWM _ LoadMode; Optional-0-Load with CTR = zero, 1-Load with CTR = PRD, 2-Load if CTR = zero or CTR = PRD

return parameters:>-None

32. void HRPWM_lockRegisters(uint32_t base, HRPWM_LockRegisterGroup registerGroup);

function function:lock the hrpwm register

input parameters:>- ** base : meaning-epwm base address; type-uint32 _ t; options-epwm1-8 base address >- ** registerGroup : meaning-register selection; type-HRPWM _ LockRegisterGroup; Optional-1-hrpwm register group

return parameters:>-None