15 #ifndef P33C_CCP_SFR_ABSTRACTION_H 16 #define P33C_CCP_SFR_ABSTRACTION_H 24 #ifndef P33C_CCP_INSTANCE_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_CCP_SFR_OFFSET ((volatile uint16_t)&CCP2CON1L - (volatile uint16_t)&CCP1CON1L) 157 #if defined (CCP9CON1L) 159 #define P33C_DAC_COUNT 9 160 #define DAC_INSTANCE_COUNT 9 161 #elif defined (CCP8CON1L) 163 #define P33C_DAC_COUNT 8 164 #define DAC_INSTANCE_COUNT 8 165 #elif defined (CCP7CON1L) 167 #define P33C_DAC_COUNT 7 168 #define DAC_INSTANCE_COUNT 7 169 #elif defined (CCP6CON1L) 171 #define P33C_DAC_COUNT 6 172 #define DAC_INSTANCE_COUNT 6 173 #elif defined (CCP5CON1L) 175 #define P33C_DAC_COUNT 5 176 #define DAC_INSTANCE_COUNT 5 177 #elif defined (CCP4CON1L) 179 #define P33C_DAC_COUNT 4 180 #define DAC_INSTANCE_COUNT 4 181 #elif defined (CCP3CON1L) 183 #define P33C_DAC_COUNT 3 184 #define DAC_INSTANCE_COUNT 3 185 #elif defined (CCP2CON1L) 187 #define P33C_DAC_COUNT 2 188 #define DAC_INSTANCE_COUNT 2 189 #elif defined (CCP1CON1L) 191 #define P33C_DAC_COUNT 1 192 #define DAC_INSTANCE_COUNT 1 210 extern volatile uint16_t* p33c_CcpInstance_Handles[];
211 #define p33c_CcpInstance_GetHandle(x) (struct P33C_CCP_INSTANCE_s*)p33c_CcpInstance_Handles[(x-1)] 218 extern volatile struct P33C_CCP_INSTANCE_s p33c_CcpInstance_ConfigRead(volatile uint16_t ccpInstance);
219 extern volatile uint16_t p33c_CcpInstance_ConfigWrite(
220 volatile uint16_t ccpInstance,
union P33C_CCP_INSTANCE_s::@12 CCPxBUFL
union P33C_CCP_INSTANCE_s::@0 CCPxCON1L
volatile uint16_t CCPBUFL
union P33C_CCP_INSTANCE_s::@6 CCPxTMRL
volatile uint16_t CCPBUFH
union P33C_CCP_INSTANCE_s::@13 CCPxBUFH
union P33C_CCP_INSTANCE_s::@1 CCPxCON1H
union P33C_CCP_INSTANCE_s::@7 CCPxTMRH
union P33C_CCP_INSTANCE_s::@8 CCPxPRL
struct tagCCP1CON1LBITS bits
union P33C_CCP_INSTANCE_s::@3 CCPxCON2H
union P33C_CCP_INSTANCE_s::@10 CCPxRAL
volatile uint16_t CCPTMRH
union P33C_CCP_INSTANCE_s::@2 CCPxCON2L
union P33C_CCP_INSTANCE_s::@4 CCPxCON3H
union P33C_CCP_INSTANCE_s::@5 CCPxSTATL
union P33C_CCP_INSTANCE_s::@9 CCPxPRH
volatile uint16_t CCPTMRL
union P33C_CCP_INSTANCE_s::@11 CCPxRBL