|
Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
|
|
15 #ifndef P33C_CCP_SFR_ABSTRACTION_H
16 #define P33C_CCP_SFR_ABSTRACTION_H
24 #ifndef P33C_CCP_INSTANCE_SFRSET_s
41 struct tagCCP1CON1LBITS
bits;
46 struct tagCCP1CON1HBITS
bits;
51 struct tagCCP1CON2LBITS
bits;
56 struct tagCCP1CON2HBITS
bits;
60 #if defined (CCP9CON3L)
62 struct tagCCP9CON3LBITS
bits;
70 struct tagCCP1CON3HBITS
bits;
75 struct tagCCP1STATLBITS
bits;
141 } __attribute__((packed));
154 #define P33C_CCPGEN_SFR_OFFSET ((volatile uint16_t)&CCP2CON1L - (volatile uint16_t)&CCP1CON1L)
163 volatile uint16_t ccpInstance,
volatile uint16_t CCPTMRH
union P33C_CCP_INSTANCE_SFRSET_s::@2 CCPxCON2L
Generic Capture Compare Driver Module (header file)
volatile struct P33C_CCP_INSTANCE_SFRSET_s p33c_CcpInstance_ConfigRead(volatile uint16_t ccpInstance)
Read the current configuration from the CCP instance registers.
union P33C_CCP_INSTANCE_SFRSET_s::@8 CCPxPRL
volatile uint16_t CCPBUFL
volatile struct P33C_CCP_INSTANCE_SFRSET_s * p33c_CcpInstance_GetHandle(volatile uint16_t ccpInstance)
Gets pointer to CCP instance SFR set.
union P33C_CCP_INSTANCE_SFRSET_s::@7 CCPxTMRH
union P33C_CCP_INSTANCE_SFRSET_s::@5 CCPxSTATL
union P33C_CCP_INSTANCE_SFRSET_s::@0 CCPxCON1L
union P33C_CCP_INSTANCE_SFRSET_s::@13 CCPxBUFH
union P33C_CCP_INSTANCE_SFRSET_s::@1 CCPxCON1H
union P33C_CCP_INSTANCE_SFRSET_s::@4 CCPxCON3H
union P33C_CCP_INSTANCE_SFRSET_s::@10 CCPxRAL
union P33C_CCP_INSTANCE_SFRSET_s::@3 CCPxCON2H
union P33C_CCP_INSTANCE_SFRSET_s::@11 CCPxRBL
union P33C_CCP_INSTANCE_SFRSET_s::@12 CCPxBUFL
struct tagCCP1CON1LBITS bits
union P33C_CCP_INSTANCE_SFRSET_s::@6 CCPxTMRL
volatile uint16_t p33c_CcpInstance_ConfigWrite(volatile uint16_t ccpInstance, volatile struct P33C_CCP_INSTANCE_SFRSET_s ccpConfig)
Writes a user-defined configuration to the CCP instance registers.
union P33C_CCP_INSTANCE_SFRSET_s::@9 CCPxPRH
volatile uint16_t CCPBUFH
volatile uint16_t CCPTMRL