#ifndef IPD_H
#define IPD_H

// <<< Use Configuration Wizard in Context Menu >>>
// <h> Set IPD LEVEL 
// <o.0..2> I_SHORT <0=> 0.15V <1=> 0.2V <2=> 0.25V <3=> 0.3V <4=> 0.35V <5=> 0.4V <6=> 0.45V <7=> 0.5V
// <i> Note : IPD Current is positvely related to voltage
// <o.6> AOCPEN <0=> Disable <1=> Enable 
// <o.7> DOCPEN <0=> Disable <1=> Enable 
// <o.4> IPD Path Select <0=> IPD Current Compare from AOCP Path <1=> IPD Current Compare from OPA Path
// </h>
#define IPD_LEVEL 0x40

// <h> Set IPD IAECYC 
// <o.1..2> IAECYC <0=> 48MHz <1=> 24MHz <2=> 12MHz <3=> 6MHz 
// </h>
#define IAECYC 0x02

// <<< end of configuration section >>>

extern unsigned char IPDPattern;

extern void IPD_Init (void);
#endif