44 #ifndef P33C_PWM_SFR_ABSTRACTION_H 45 #define P33C_PWM_SFR_ABSTRACTION_H 87 struct tagPCLKCONBITS
bits;
140 struct tagLOGCONABITS
bits;
144 struct tagLOGCONABITS
bits;
148 struct tagLOGCONABITS
bits;
152 struct tagLOGCONABITS
bits;
156 struct tagLOGCONABITS
bits;
164 struct tagPWMEVTABITS
bits;
168 struct tagPWMEVTABITS
bits;
172 struct tagPWMEVTABITS
bits;
176 struct tagPWMEVTABITS
bits;
180 struct tagPWMEVTABITS
bits;
184 } __attribute__((packed));
201 #define p33c_PwmModule_GetHandle() (struct P33C_PWM_MODULE_s*)&PCLKCON // Captures memory address of first PWM module register 331 } __attribute__((packed));
346 #define P33C_PWMGEN_SFR_OFFSET ((volatile uint16_t)&PG2CONL - (volatile uint16_t)&PG1CONL) 359 #if defined (PG8CONL) 361 #define P33C_PG_COUNT 8 362 #define PWM_GENERATOR_COUNT 8 363 #elif defined (PG4CONL) 365 #define P33C_PG_COUNT 4 366 #define PWM_GENERATOR_COUNT 4 384 extern volatile uint16_t* p33c_PwmGenerator_Handles[];
385 #define p33c_PwmGenerator_GetHandle(x) (struct P33C_PWM_GENERATOR_s*)p33c_PwmGenerator_Handles[(x-1)] 398 extern volatile uint16_t p33c_PwmModule_ConfigWrite(
volatile struct P33C_PWM_MODULE_s pwmConfig);
401 extern volatile uint16_t p33c_PwmModule_Initialize(
void);
402 extern volatile uint16_t p33c_PwmModule_Dispose(
void);
409 extern volatile struct P33C_PWM_GENERATOR_s p33c_PwmGenerator_ConfigRead(volatile uint16_t pgInstance);
410 extern volatile uint16_t p33c_PwmGenerator_ConfigWrite(
volatile uint16_t pgInstance,
413 extern volatile uint16_t p33c_PwmGenerator_GetInstance(
volatile struct P33C_PWM_GENERATOR_s* pg);
418 extern volatile uint16_t p33c_PwmGenerator_Initialize(
volatile uint16_t pgInstance);
419 extern volatile uint16_t p33c_PwmGenerator_Dispose(
volatile uint16_t pgInstance);
428 volatile uint16_t period);
429 extern volatile uint16_t p33c_PwmGenerator_SetDutyCycle(
volatile struct P33C_PWM_GENERATOR_s* pg,
430 volatile uint16_t duty);
431 extern volatile uint16_t p33c_PwmGenerator_SetDeadTimes(
volatile struct P33C_PWM_GENERATOR_s* pg,
432 volatile uint16_t dead_time_rising,
volatile uint16_t dead_time_falling);
434 volatile uint16_t p33c_PwmGenerator_SyncGenerators(
436 volatile uint16_t pgMotherTriggerOutput,
438 volatile bool ChildImmediateUpdate
union P33C_PWM_GENERATOR_s::@288 PGxTRIGB
union P33C_PWM_GENERATOR_s::@275 PGxCLPCIL
union P33C_PWM_GENERATOR_s::@278 PGxFFPCIH
union P33C_PWM_GENERATOR_s::@279 PGxSPCIL
union P33C_PWM_MODULE_s::@212 vPCLKCON
union P33C_PWM_GENERATOR_s::@270 PGxIOCONH
union P33C_PWM_MODULE_s::@229 PWMEVT_C
union P33C_PWM_MODULE_s::@222 LOGCON_B
union P33C_PWM_GENERATOR_s::@286 PGxPER
union P33C_PWM_GENERATOR_s::@271 PGxEVTL
union P33C_PWM_GENERATOR_s::@266 PGxCONL
union P33C_PWM_GENERATOR_s::@269 PGxIOCONL
struct tagPG1CONLBITS bits
union P33C_PWM_GENERATOR_s::@272 PGxEVTH
union P33C_PWM_GENERATOR_s::@290 PGxDTL
union P33C_PWM_GENERATOR_s::@277 PGxFFPCIL
union P33C_PWM_GENERATOR_s::@281 PGxLEBL
union P33C_PWM_MODULE_s::@226 LOGCON_F
union P33C_PWM_MODULE_s::@219 vCMBTRIGL
union P33C_PWM_GENERATOR_s::@280 PGxSPCIH
union P33C_PWM_MODULE_s::@224 LOGCON_D
union P33C_PWM_MODULE_s::@232 PWMEVT_F
union P33C_PWM_GENERATOR_s::@287 PGxTRIGA
union P33C_PWM_GENERATOR_s::@282 PGxLEBH
union P33C_PWM_MODULE_s::@217 vMPER
union P33C_PWM_MODULE_s::@213 vFSCL
union P33C_PWM_MODULE_s::@227 PWMEVT_A
union P33C_PWM_MODULE_s::@221 LOGCON_A
union P33C_PWM_MODULE_s::@230 PWMEVT_D
union P33C_PWM_MODULE_s::@215 vMPHASE
union P33C_PWM_MODULE_s::@218 vLFSR
union P33C_PWM_GENERATOR_s::@292 PGxCAP
union P33C_PWM_MODULE_s::@214 vFSMINPER
union P33C_PWM_GENERATOR_s::@291 PGxDTH
union P33C_PWM_GENERATOR_s::@276 PGxCLPCIH
union P33C_PWM_MODULE_s::@220 vCMBTRIGH
union P33C_PWM_MODULE_s::@216 vMDC
union P33C_PWM_GENERATOR_s::@289 PGxTRIGC
union P33C_PWM_MODULE_s::@225 LOGCON_E
union P33C_PWM_MODULE_s::@223 LOGCON_C
union P33C_PWM_GENERATOR_s::@285 PGxDCA
union P33C_PWM_GENERATOR_s::@268 PGxSTAT
union P33C_PWM_GENERATOR_s::@274 PGxFPCIH
struct tagPCLKCONBITS bits
union P33C_PWM_GENERATOR_s::@267 PGxCONH
union P33C_PWM_MODULE_s::@228 PWMEVT_B
union P33C_PWM_GENERATOR_s::@273 PGxFPCIL
union P33C_PWM_GENERATOR_s::@284 PGxDC
union P33C_PWM_MODULE_s::@231 PWMEVT_E
union P33C_PWM_GENERATOR_s::@283 PGxPHASE