 |
MCUSW
|
Go to the documentation of this file.
108 #include "Std_Types.h"
126 #define PWM_SW_MAJOR_VERSION (11U)
128 #define PWM_SW_MINOR_VERSION (1U)
130 #define PWM_SW_PATCH_VERSION (0U)
142 #define PWM_AR_RELEASE_MAJOR_VERSION (4U)
144 #define PWM_AR_RELEASE_MINOR_VERSION (3U)
146 #define PWM_AR_RELEASE_REVISION_VERSION (1U)
154 #define PWM_VENDOR_ID ((uint16) 44U)
156 #define PWM_MODULE_ID ((uint16) 121U)
170 #ifndef PWM_E_INIT_FAILED
171 #define PWM_E_INIT_FAILED ((uint8)(0x10U))
180 #define PWM_E_UNINIT ((uint8)(0x11U))
189 #ifndef PWM_E_PARAM_CHANNEL
190 #define PWM_E_PARAM_CHANNEL ((uint8)(0x12U))
198 #ifndef PWM_E_PERIOD_UNCHANGEABLE
199 #define PWM_E_PERIOD_UNCHANGEABLE ((uint8)(0x13U))
206 #ifndef PWM_E_ALREADY_INITIALIZED
207 #define PWM_E_ALREADY_INITIALIZED ((uint8)(0x14U))
214 #ifndef PWM_E_PARAM_POINTER
215 #define PWM_E_PARAM_POINTER ((uint8)(0x15U))
223 #ifndef PWM_E_NOT_DISENGAGED
224 #define PWM_E_NOT_DISENGAGED ((uint8)(0x16U))
236 #define PWM_SID_INIT ((uint8)(0x0U))
238 #define PWM_SID_DEINIT ((uint8)(0x1U))
240 #define PWM_SID_SET_DUTY_CYCLE ((uint8)(0x2U))
242 #define PWM_SID_SET_PERIOD_AND_DUTY ((uint8)(0x3U))
244 #define PWM_SID_SET_OUTPUT_TO_IDLE ((uint8)(0x4U))
246 #define PWM_SID_GET_OUTPUT_STATE ((uint8)(0x5U))
248 #define PWM_SID_DISABLE_NOTIFICATION ((uint8)(0x6U))
250 #define PWM_SID_ENABLE_NOTIFICATION ((uint8)(0x7U))
252 #define PWM_SID_GET_VERSION_INFO ((uint8)(0x8U))
254 #define PWM_SID_REGISTER_READBACK ((uint8)(0xDU))
264 #define PWM_STATUS_UNINIT ((uint8)(0U))
266 #define PWM_STATUS_INIT ((uint8)(1U))
280 #define PWM_DUTY_0_PERCENT (0x0U)
282 #define PWM_DUTY_100_PERCENT (0x8000U)
284 #define PWM_DUTY_50_PERCENT (0x4000U)
320 } Pwm_CounterModeType;
370 typedef enum Pwm_epwmOutputCh
393 typedef struct Pwm_ConfigType_PC_s
418 Pwm_CounterModeType CounterMode;
447 #if (PWM_NOTIFICATION_SUPPORTED == STD_ON)
457 typedef struct Pwm_ConfigType_s
463 #if (STD_ON == PWM_REGISTER_READBACK_API)
477 uint32 pwmTimerSynCtrl;
551 #if (STD_ON == PWM_DEINIT_API)
571 FUNC(
void, PWM_CODE) Pwm_DeInit(
void);
574 #if (STD_ON == PWM_SET_DUTY_CYCLE_API)
597 FUNC(
void, PWM_CODE) Pwm_SetDutyCycle(
601 #if (STD_ON == PWM_SET_PERIOD_AND_DUTY_API)
625 FUNC(
void, PWM_CODE) Pwm_SetPeriodAndDuty(
629 #if (STD_ON == PWM_SET_OUTPUT_TO_IDLE_API)
652 #if (STD_ON == PWM_GET_OUTPUT_STATE_API)
659 #if (STD_ON == PWM_NOTIFICATION_SUPPORTED)
682 #if (STD_ON == PWM_NOTIFICATION_SUPPORTED)
704 FUNC(
void, PWM_CODE) Pwm_EnableNotification(
708 #if (STD_ON == PWM_VERSION_INFO_API)
728 FUNC(
void, PWM_CODE) Pwm_GetVersionInfo(
732 #if(STD_ON == PWM_REGISTER_READBACK_API)
@ PWM_LOW
Definition: Pwm.h:303
@ EPWM_OUTPUT_CH_B
Definition: Pwm.h:374
@ PWM_RISING_EDGE
Definition: Pwm.h:328
PWM_APPL_DATA versioninfo
Definition: Pwm.h:729
@ PWM_HIGH
Definition: Pwm.h:305
@ PWM_FALLING_EDGE
Definition: Pwm.h:330
Pwm_OutputStateType
Possible output states of a PWM channel.
Definition: Pwm.h:302
Pwm_OutputStateType idleState
Definition: Pwm.h:411
Pwm_epwmOutputCh_t
EPWM outputs in a single epwm channel.
Definition: Pwm.h:371
@ PWM_FIXED_PERIOD
Definition: Pwm.h:361
Pwm_ChannelClassType
Period type for pwm channels. Fixed periods prohibit changes to the period length with Pwm_SetPeriod(...
Definition: Pwm.h:360
Pwm_OutputStateType polarity
Definition: Pwm.h:409
Pwm_EdgeNotificationType Notification
Definition: Pwm.h:705
uint16 DutyCycle
Definition: Pwm.h:598
Pwm_EdgeNotificationType
Possible edge notification
Definition: Pwm.h:327
Std_ReturnType Pwm_RegisterReadback(Pwm_ChannelType ChannelNumber, Pwm_RegisterReadbackType *RegRbPtr)
This function reads the important registers of the hardware unit and returns the value in the structu...
FUNC(void, PWM_CODE) Pwm_Init(P2CONST(Pwm_ConfigType
Service for PWM initialization.
uint32 hwPeriod
Definition: Pwm.h:407
void(* Pwm_NotifyFuncType)(void)
Notification callback function pointer
Definition: Pwm.h:381
uint32 Pwm_FrequencyType
typedef of frequency value (Frequency in Hz)
Definition: Pwm.h:349
This file contains generated pre compile configuration file for PWM MCAL driver.
SPI_APPL_DATA RegRbPtr
Definition: Fls.h:806
Pwm_PeriodType Period
Definition: Pwm.h:626
PWM_PBCFG CfgPtr
Definition: Pwm.h:549
P2CONST(void, AUTOMATIC, DIO_CONST) DioConfig_WKUP_GPIO0_B01_ChannelGroupRef[1]
Reference to channel group structure for WKUP_GPIO0_B01 created at config time.
#define PWM_NUM_CHANNELS
Number of configured channels.
Definition: Pwm_Cfg.h:152
@ PWM_FIXED_PERIOD_SHIFTED
Definition: Pwm.h:363
Pwm_NotifyFuncType notificationHandler
Definition: Pwm.h:448
uint32 instanceClkHz
Definition: Pwm.h:403
uint32 prescale
Definition: Pwm.h:415
Pwm_ChannelClassType channelClass
Definition: Pwm.h:413
uint32 Pwm_PeriodType
typedef of period value
Definition: Pwm.h:340
@ EPWM_OUTPUT_CH_A
Definition: Pwm.h:372
Pwm channel configuration.
Definition: Pwm.h:402
@ PWM_VARIABLE_PERIOD
Definition: Pwm.h:365
uint16 dutyCycle
Definition: Pwm.h:405
Pwm configuration structure.
Definition: Pwm.h:394
uint32 Pwm_ChannelType
PWM Channel type.
Definition: Pwm.h:346
@ PWM_BOTH_EDGES
Definition: Pwm.h:332
Pwm configuration structure.
Definition: Pwm.h:458
AUTOMATIC
Definition: Pwm.h:549
Pwm_ChannelType channelId
Definition: Pwm.h:385
Pwm channel configuration.
Definition: Pwm.h:384
P2VAR(Eth_ModeType, AUTOMATIC, ETH_APPL_DATA) CtrlModePtr)
PWM register readback structure.
Definition: Pwm.h:468
@ EPWM_OUTPUT_CH_BOTH_A_AND_B
Definition: Pwm.h:376