31 #if defined (DAC8CONL) 33 volatile uint16_t* p33cDacInstanceHandles[8]={
34 &DAC1CONL, &DAC2CONL, &DAC3CONL, &DAC4CONL,
35 &DAC5CONL, &DAC6CONL, &DAC7CONL, &DAC8CONL
37 #define P33C_DAC_COUNT 8 38 #elif defined (DAC7CONL) 40 volatile uint16_t* p33cDacInstanceHandles[7]={
41 &DAC1CONL, &DAC2CONL, &DAC3CONL, &DAC4CONL,
42 &DAC5CONL, &DAC6CONL, &DAC7CONL
44 #define P33C_DAC_COUNT 7 45 #elif defined (DAC6CONL) 47 volatile uint16_t* p33cDacInstanceHandles[6]={
48 &DAC1CONL, &DAC2CONL, &DAC3CONL, &DAC4CONL,
51 #define P33C_DAC_COUNT 6 52 #elif defined (DAC5CONL) 54 volatile uint16_t* p33cDacInstanceHandles[5]={
55 &DAC1CONL, &DAC2CONL, &DAC3CONL, &DAC4CONL,
58 #define P33C_DAC_COUNT 5 59 #elif defined (DAC4CONL) 61 volatile uint16_t* p33cDacInstanceHandles[4]={
62 &DAC1CONL, &DAC2CONL, &DAC3CONL, &DAC4CONL
64 #define P33C_DAC_COUNT 4 65 #elif defined (DAC3CONL) 67 volatile uint16_t* p33cDacInstanceHandles[3]={
68 &DAC1CONL, &DAC2CONL, &DAC3CONL
70 #define P33C_DAC_COUNT 3 71 #elif defined (DAC2CONL) 73 volatile uint16_t* p33cDacInstanceHandles[2]={
76 #define P33C_DAC_COUNT 2 77 #elif defined (DAC1CONL) 79 volatile uint16_t* p33cDacInstanceHandles[2]={
82 #define P33C_DAC_COUNT 1 107 volatile uint16_t p33c_DacModule_Dispose(
void)
109 volatile uint16_t retval=1;
111 retval = p33c_DacModule_ConfigWrite(dacModuleConfigClear);
137 dac = p33c_DacModule_GetHandle();
161 volatile uint16_t p33c_DacModule_ConfigWrite(
165 volatile uint16_t retval=1;
169 dac = p33c_DacModule_GetHandle();
170 *dac = dacModuleConfig;
202 volatile uint16_t p33c_DacInstance_Dispose(
volatile uint16_t dacInstance)
204 volatile uint16_t retval=1;
206 retval = p33c_DacInstance_ConfigWrite(dacInstance, dacConfigClear);
226 volatile struct P33C_DAC_INSTANCE_s p33c_DacInstance_ConfigRead(volatile uint16_t dacInstance)
231 dac = p33c_DacInstance_GetHandle(dacInstance);
256 volatile uint16_t p33c_DacInstance_ConfigWrite(
257 volatile uint16_t dacInstance,
260 volatile uint16_t retval=1;
264 dac = p33c_DacInstance_GetHandle(dacInstance);
293 .DacModuleCtrl2L.value = 0x0000,
294 .DacModuleCtrl2H.value = 0x0000
319 .DacModuleCtrl2H.bits.SSTIME = 0x008A,
320 .DacModuleCtrl2L.bits.TMODTIME = 0x0055
341 .DACxCONH.value = 0x0000,
342 .DACxDATL.value = 0x0000,
343 .DACxDATH.value = 0x0000,
344 .SLPxCONL.value = 0x0000,
345 .SLPxCONH.value = 0x0000,
346 .SLPxDAT.value = 0x0000
union P33C_DAC_INSTANCE_s::@78 DACxCONL
union P33C_DAC_MODULE_s::@72 DacModuleCtrl1L