//
// Register Declarations for Microchip 16F1509 Processor
//
//
// This header file was automatically generated by:
//
// inc2h.pl
//
// Copyright (c) 2002, Kevin L. Pauba, All Rights Reserved
//
// SDCC is licensed under the GNU Public license (GPL) v2. Note that
// this license covers the code to the compiler and other executables,
// but explicitly does not cover any code or objects generated by sdcc.
//
// For pic device libraries and header files which are derived from
// Microchip header (.inc) and linker script (.lkr) files Microchip
// requires that "The header files should state that they are only to be
// used with authentic Microchip devices" which makes them incompatible
// with the GPL. Pic device libraries and header files are located at
// non-free/lib and non-free/include directories respectively.
// Sdcc should be run with the --use-non-free command line option in
// order to include non-free header files and libraries.
//
// See http://sdcc.sourceforge.net/ for the latest information on sdcc.
//
// 
#ifndef P16F1509_H
#define P16F1509_H

//
// Register addresses.
//
#define INDF0_ADDR      0x0000
#define INDF1_ADDR      0x0001
#define PCL_ADDR        0x0002
#define STATUS_ADDR     0x0003
#define FSR0_ADDR       0x0004
#define FSR0L_ADDR      0x0004
#define FSR0H_ADDR      0x0005
#define FSR1_ADDR       0x0006
#define FSR1L_ADDR      0x0006
#define FSR1H_ADDR      0x0007
#define BSR_ADDR        0x0008
#define WREG_ADDR       0x0009
#define PCLATH_ADDR     0x000A
#define INTCON_ADDR     0x000B
#define PORTA_ADDR      0x000C
#define PORTB_ADDR      0x000D
#define PORTC_ADDR      0x000E
#define PIR1_ADDR       0x0011
#define PIR2_ADDR       0x0012
#define PIR3_ADDR       0x0013
#define TMR0_ADDR       0x0015
#define TMR1_ADDR       0x0016
#define TMR1L_ADDR      0x0016
#define TMR1H_ADDR      0x0017
#define T1CON_ADDR      0x0018
#define T1GCON_ADDR     0x0019
#define TMR2_ADDR       0x001A
#define PR2_ADDR        0x001B
#define T2CON_ADDR      0x001C
#define TRISA_ADDR      0x008C
#define TRISB_ADDR      0x008D
#define TRISC_ADDR      0x008E
#define PIE1_ADDR       0x0091
#define PIE2_ADDR       0x0092
#define PIE3_ADDR       0x0093
#define OPTION_REG_ADDR 0x0095
#define PCON_ADDR       0x0096
#define WDTCON_ADDR     0x0097
#define OSCCON_ADDR     0x0099
#define OSCSTAT_ADDR    0x009A
#define ADRES_ADDR      0x009B
#define ADRESL_ADDR     0x009B
#define ADRESH_ADDR     0x009C
#define ADCON0_ADDR     0x009D
#define ADCON1_ADDR     0x009E
#define ADCON2_ADDR     0x009F
#define LATA_ADDR       0x010C
#define LATB_ADDR       0x010D
#define LATC_ADDR       0x010E
#define CM1CON0_ADDR    0x0111
#define CM1CON1_ADDR    0x0112
#define CM2CON0_ADDR    0x0113
#define CM2CON1_ADDR    0x0114
#define CMOUT_ADDR      0x0115
#define BORCON_ADDR     0x0116
#define FVRCON_ADDR     0x0117
#define DACCON0_ADDR    0x0118
#define DACCON1_ADDR    0x0119
#define APFCON_ADDR     0x011D
#define ANSELA_ADDR     0x018C
#define ANSELB_ADDR     0x018D
#define ANSELC_ADDR     0x018E
#define PMADR_ADDR      0x0191
#define PMADRL_ADDR     0x0191
#define PMADRH_ADDR     0x0192
#define PMDAT_ADDR      0x0193
#define PMDATL_ADDR     0x0193
#define PMDATH_ADDR     0x0194
#define PMCON1_ADDR     0x0195
#define PMCON2_ADDR     0x0196
#define VREGCON_ADDR    0x0197
#define RCREG_ADDR      0x0199
#define TXREG_ADDR      0x019A
#define SPBRGL_ADDR     0x019B
#define SPBRGH_ADDR     0x019C
#define RCSTA_ADDR      0x019D
#define TXSTA_ADDR      0x019E
#define BAUDCON_ADDR    0x019F
#define WPUA_ADDR       0x020C
#define WPUB_ADDR       0x020D
#define SSP1BUF_ADDR    0x0211
#define SSPBUF_ADDR     0x0211
#define SSP1ADD_ADDR    0x0212
#define SSPADD_ADDR     0x0212
#define SSP1MSK_ADDR    0x0213
#define SSPMSK_ADDR     0x0213
#define SSP1STAT_ADDR   0x0214
#define SSPSTAT_ADDR    0x0214
#define SSP1CON1_ADDR   0x0215
#define SSPCON_ADDR     0x0215
#define SSPCON1_ADDR    0x0215
#define SSP1CON2_ADDR   0x0216
#define SSPCON2_ADDR    0x0216
#define SSP1CON3_ADDR   0x0217
#define SSPCON3_ADDR    0x0217
#define IOCAP_ADDR      0x0391
#define IOCAN_ADDR      0x0392
#define IOCAF_ADDR      0x0393
#define IOCBP_ADDR      0x0394
#define IOCBN_ADDR      0x0395
#define IOCBF_ADDR      0x0396
#define NCO1ACC_ADDR    0x0498
#define NCO1ACCL_ADDR   0x0498
#define NCO1ACCH_ADDR   0x0499
#define NCO1ACCU_ADDR   0x049A
#define NCO1INC_ADDR    0x049B
#define NCO1INCL_ADDR   0x049B
#define NCO1INCH_ADDR   0x049C
#define NCO1INCU_ADDR   0x049D
#define NCO1CON_ADDR    0x049E
#define NCO1CLK_ADDR    0x049F
#define PWM1DCL_ADDR    0x0611
#define PWM1DCH_ADDR    0x0612
#define PWM1CON_ADDR    0x0613
#define PWM1CON0_ADDR   0x0613
#define PWM2DCL_ADDR    0x0614
#define PWM2DCH_ADDR    0x0615
#define PWM2CON_ADDR    0x0616
#define PWM2CON0_ADDR   0x0616
#define PWM3DCL_ADDR    0x0617
#define PWM3DCH_ADDR    0x0618
#define PWM3CON_ADDR    0x0619
#define PWM3CON0_ADDR   0x0619
#define PWM4DCL_ADDR    0x061A
#define PWM4DCH_ADDR    0x061B
#define PWM4CON_ADDR    0x061C
#define PWM4CON0_ADDR   0x061C
#define CWG1DBR_ADDR    0x0691
#define CWG1DBF_ADDR    0x0692
#define CWG1CON0_ADDR   0x0693
#define CWG1CON1_ADDR   0x0694
#define CWG1CON2_ADDR   0x0695
#define CLCDATA_ADDR    0x0F0F
#define CLC1CON_ADDR    0x0F10
#define CLC1POL_ADDR    0x0F11
#define CLC1SEL0_ADDR   0x0F12
#define CLC1SEL1_ADDR   0x0F13
#define CLC1GLS0_ADDR   0x0F14
#define CLC1GLS1_ADDR   0x0F15
#define CLC1GLS2_ADDR   0x0F16
#define CLC1GLS3_ADDR   0x0F17
#define CLC2CON_ADDR    0x0F18
#define CLC2POL_ADDR    0x0F19
#define CLC2SEL0_ADDR   0x0F1A
#define CLC2SEL1_ADDR   0x0F1B
#define CLC2GLS0_ADDR   0x0F1C
#define CLC2GLS1_ADDR   0x0F1D
#define CLC2GLS2_ADDR   0x0F1E
#define CLC2GLS3_ADDR   0x0F1F
#define CLC3CON_ADDR    0x0F20
#define CLC3POL_ADDR    0x0F21
#define CLC3SEL0_ADDR   0x0F22
#define CLC3SEL1_ADDR   0x0F23
#define CLC3GLS0_ADDR   0x0F24
#define CLC3GLS1_ADDR   0x0F25
#define CLC3GLS2_ADDR   0x0F26
#define CLC3GLS3_ADDR   0x0F27
#define CLC4CON_ADDR    0x0F28
#define CLC4POL_ADDR    0x0F29
#define CLC4SEL0_ADDR   0x0F2A
#define CLC4SEL1_ADDR   0x0F2B
#define CLC4GLS0_ADDR   0x0F2C
#define CLC4GLS1_ADDR   0x0F2D
#define CLC4GLS2_ADDR   0x0F2E
#define CLC4GLS3_ADDR   0x0F2F
#define ICDIO_ADDR      0x0F8C
#define ICDCON0_ADDR    0x0F8D
#define ICDSTAT_ADDR    0x0F91
#define DEVSEL_ADDR     0x0F95
#define ICDINSTL_ADDR   0x0F96
#define ICDINSTH_ADDR   0x0F97
#define ICDBK0CON_ADDR  0x0F9C
#define ICDBK0L_ADDR    0x0F9D
#define ICDBK0H_ADDR    0x0F9E
#define BSRICDSHAD_ADDR 0x0FE3
#define STATUS_SHAD_ADDR        0x0FE4
#define WREG_SHAD_ADDR  0x0FE5
#define BSR_SHAD_ADDR   0x0FE6
#define PCLATH_SHAD_ADDR        0x0FE7
#define FSR0L_SHAD_ADDR 0x0FE8
#define FSR0H_SHAD_ADDR 0x0FE9
#define FSR1L_SHAD_ADDR 0x0FEA
#define FSR1H_SHAD_ADDR 0x0FEB
#define STKPTR_ADDR     0x0FED
#define TOSL_ADDR       0x0FEE
#define TOSH_ADDR       0x0FEF

//
// Memory organization.
//



//         LIST

//==========================================================================
//  MPASM PIC16F1509 processor include
//
//  (c) Copyright 1999-2012 Microchip Technology, All rights reserved
//==========================================================================

//         NOLIST

//==========================================================================
//  This header file defines configurations, registers, and other useful
//  bits of information for the PIC16F1509 microcontroller.  These names
//  are taken to match the data sheets as closely as possible.
//
//  Note that the processor must be selected before this file is included.
//  The processor may be selected the following ways:
//
//       1. Command line switch:
//               C:\MPASM MYFILE.ASM /PIC16F1509
//       2. LIST directive in the source file
//               LIST   P=PIC16F1509
//       3. Processor Type entry in the MPASM full-screen interface
//       4. Setting the processor in the MPLAB Project Dialog
//==========================================================================

//==========================================================================
//
//       Gputils Specific Revision History
//
//==========================================================================

//       19 Jun 2012  Added ADCS{0,1,2} bits to "ADCON1 Bits".

//==========================================================================
//
//       Verify Processor
//
//==========================================================================
//        IFNDEF __16F1509
//            MESSG "Processor-header file mismatch.  Verify selected processor."
//         ENDIF



//==========================================================================
//
//       Register Definitions
//
//==========================================================================

#define W                    0x0000
#define F                    0x0001

//----- Register Files -----------------------------------------------------

//-----Bank0------------------
extern __sfr  __at (INDF0_ADDR)                   INDF0;
extern __sfr  __at (INDF1_ADDR)                   INDF1;
extern __sfr  __at (PCL_ADDR)                     PCL;
extern __sfr  __at (STATUS_ADDR)                  STATUS;
extern __sfr  __at (FSR0_ADDR)                    FSR0;
extern __sfr  __at (FSR0L_ADDR)                   FSR0L;
extern __sfr  __at (FSR0H_ADDR)                   FSR0H;
extern __sfr  __at (FSR1_ADDR)                    FSR1;
extern __sfr  __at (FSR1L_ADDR)                   FSR1L;
extern __sfr  __at (FSR1H_ADDR)                   FSR1H;
extern __sfr  __at (BSR_ADDR)                     BSR;
extern __sfr  __at (WREG_ADDR)                    WREG;
extern __sfr  __at (PCLATH_ADDR)                  PCLATH;
extern __sfr  __at (INTCON_ADDR)                  INTCON;
extern __sfr  __at (PORTA_ADDR)                   PORTA;
extern __sfr  __at (PORTB_ADDR)                   PORTB;
extern __sfr  __at (PORTC_ADDR)                   PORTC;
extern __sfr  __at (PIR1_ADDR)                    PIR1;
extern __sfr  __at (PIR2_ADDR)                    PIR2;
extern __sfr  __at (PIR3_ADDR)                    PIR3;
extern __sfr  __at (TMR0_ADDR)                    TMR0;
extern __sfr  __at (TMR1_ADDR)                    TMR1;
extern __sfr  __at (TMR1L_ADDR)                   TMR1L;
extern __sfr  __at (TMR1H_ADDR)                   TMR1H;
extern __sfr  __at (T1CON_ADDR)                   T1CON;
extern __sfr  __at (T1GCON_ADDR)                  T1GCON;
extern __sfr  __at (TMR2_ADDR)                    TMR2;
extern __sfr  __at (PR2_ADDR)                     PR2;
extern __sfr  __at (T2CON_ADDR)                   T2CON;

//-----Bank1------------------
extern __sfr  __at (TRISA_ADDR)                   TRISA;
extern __sfr  __at (TRISB_ADDR)                   TRISB;
extern __sfr  __at (TRISC_ADDR)                   TRISC;
extern __sfr  __at (PIE1_ADDR)                    PIE1;
extern __sfr  __at (PIE2_ADDR)                    PIE2;
extern __sfr  __at (PIE3_ADDR)                    PIE3;
extern __sfr  __at (OPTION_REG_ADDR)              OPTION_REG;
extern __sfr  __at (PCON_ADDR)                    PCON;
extern __sfr  __at (WDTCON_ADDR)                  WDTCON;
extern __sfr  __at (OSCCON_ADDR)                  OSCCON;
extern __sfr  __at (OSCSTAT_ADDR)                 OSCSTAT;
extern __sfr  __at (ADRES_ADDR)                   ADRES;
extern __sfr  __at (ADRESL_ADDR)                  ADRESL;
extern __sfr  __at (ADRESH_ADDR)                  ADRESH;
extern __sfr  __at (ADCON0_ADDR)                  ADCON0;
extern __sfr  __at (ADCON1_ADDR)                  ADCON1;
extern __sfr  __at (ADCON2_ADDR)                  ADCON2;

//-----Bank2------------------
extern __sfr  __at (LATA_ADDR)                    LATA;
extern __sfr  __at (LATB_ADDR)                    LATB;
extern __sfr  __at (LATC_ADDR)                    LATC;
extern __sfr  __at (CM1CON0_ADDR)                 CM1CON0;
extern __sfr  __at (CM1CON1_ADDR)                 CM1CON1;
extern __sfr  __at (CM2CON0_ADDR)                 CM2CON0;
extern __sfr  __at (CM2CON1_ADDR)                 CM2CON1;
extern __sfr  __at (CMOUT_ADDR)                   CMOUT;
extern __sfr  __at (BORCON_ADDR)                  BORCON;
extern __sfr  __at (FVRCON_ADDR)                  FVRCON;
extern __sfr  __at (DACCON0_ADDR)                 DACCON0;
extern __sfr  __at (DACCON1_ADDR)                 DACCON1;
extern __sfr  __at (APFCON_ADDR)                  APFCON;

//-----Bank3------------------
extern __sfr  __at (ANSELA_ADDR)                  ANSELA;
extern __sfr  __at (ANSELB_ADDR)                  ANSELB;
extern __sfr  __at (ANSELC_ADDR)                  ANSELC;
extern __sfr  __at (PMADR_ADDR)                   PMADR;
extern __sfr  __at (PMADRL_ADDR)                  PMADRL;
extern __sfr  __at (PMADRH_ADDR)                  PMADRH;
extern __sfr  __at (PMDAT_ADDR)                   PMDAT;
extern __sfr  __at (PMDATL_ADDR)                  PMDATL;
extern __sfr  __at (PMDATH_ADDR)                  PMDATH;
extern __sfr  __at (PMCON1_ADDR)                  PMCON1;
extern __sfr  __at (PMCON2_ADDR)                  PMCON2;
extern __sfr  __at (VREGCON_ADDR)                 VREGCON;
extern __sfr  __at (RCREG_ADDR)                   RCREG;
extern __sfr  __at (TXREG_ADDR)                   TXREG;
extern __sfr  __at (SPBRGL_ADDR)                  SPBRGL;
extern __sfr  __at (SPBRGH_ADDR)                  SPBRGH;
extern __sfr  __at (RCSTA_ADDR)                   RCSTA;
extern __sfr  __at (TXSTA_ADDR)                   TXSTA;
extern __sfr  __at (BAUDCON_ADDR)                 BAUDCON;

//-----Bank4------------------
extern __sfr  __at (WPUA_ADDR)                    WPUA;
extern __sfr  __at (WPUB_ADDR)                    WPUB;
extern __sfr  __at (SSP1BUF_ADDR)                 SSP1BUF;
extern __sfr  __at (SSPBUF_ADDR)                  SSPBUF;
extern __sfr  __at (SSP1ADD_ADDR)                 SSP1ADD;
extern __sfr  __at (SSPADD_ADDR)                  SSPADD;
extern __sfr  __at (SSP1MSK_ADDR)                 SSP1MSK;
extern __sfr  __at (SSPMSK_ADDR)                  SSPMSK;
extern __sfr  __at (SSP1STAT_ADDR)                SSP1STAT;
extern __sfr  __at (SSPSTAT_ADDR)                 SSPSTAT;
extern __sfr  __at (SSP1CON1_ADDR)                SSP1CON1;
extern __sfr  __at (SSPCON_ADDR)                  SSPCON;
extern __sfr  __at (SSPCON1_ADDR)                 SSPCON1;
extern __sfr  __at (SSP1CON2_ADDR)                SSP1CON2;
extern __sfr  __at (SSPCON2_ADDR)                 SSPCON2;
extern __sfr  __at (SSP1CON3_ADDR)                SSP1CON3;
extern __sfr  __at (SSPCON3_ADDR)                 SSPCON3;

//-----Bank7------------------
extern __sfr  __at (IOCAP_ADDR)                   IOCAP;
extern __sfr  __at (IOCAN_ADDR)                   IOCAN;
extern __sfr  __at (IOCAF_ADDR)                   IOCAF;
extern __sfr  __at (IOCBP_ADDR)                   IOCBP;
extern __sfr  __at (IOCBN_ADDR)                   IOCBN;
extern __sfr  __at (IOCBF_ADDR)                   IOCBF;

//-----Bank9------------------
extern __sfr  __at (NCO1ACC_ADDR)                 NCO1ACC;
extern __sfr  __at (NCO1ACCL_ADDR)                NCO1ACCL;
extern __sfr  __at (NCO1ACCH_ADDR)                NCO1ACCH;
extern __sfr  __at (NCO1ACCU_ADDR)                NCO1ACCU;
extern __sfr  __at (NCO1INC_ADDR)                 NCO1INC;
extern __sfr  __at (NCO1INCL_ADDR)                NCO1INCL;
extern __sfr  __at (NCO1INCH_ADDR)                NCO1INCH;
extern __sfr  __at (NCO1INCU_ADDR)                NCO1INCU;
extern __sfr  __at (NCO1CON_ADDR)                 NCO1CON;
extern __sfr  __at (NCO1CLK_ADDR)                 NCO1CLK;

//-----Bank12------------------
extern __sfr  __at (PWM1DCL_ADDR)                 PWM1DCL;
extern __sfr  __at (PWM1DCH_ADDR)                 PWM1DCH;
extern __sfr  __at (PWM1CON_ADDR)                 PWM1CON;
extern __sfr  __at (PWM1CON0_ADDR)                PWM1CON0;
extern __sfr  __at (PWM2DCL_ADDR)                 PWM2DCL;
extern __sfr  __at (PWM2DCH_ADDR)                 PWM2DCH;
extern __sfr  __at (PWM2CON_ADDR)                 PWM2CON;
extern __sfr  __at (PWM2CON0_ADDR)                PWM2CON0;
extern __sfr  __at (PWM3DCL_ADDR)                 PWM3DCL;
extern __sfr  __at (PWM3DCH_ADDR)                 PWM3DCH;
extern __sfr  __at (PWM3CON_ADDR)                 PWM3CON;
extern __sfr  __at (PWM3CON0_ADDR)                PWM3CON0;
extern __sfr  __at (PWM4DCL_ADDR)                 PWM4DCL;
extern __sfr  __at (PWM4DCH_ADDR)                 PWM4DCH;
extern __sfr  __at (PWM4CON_ADDR)                 PWM4CON;
extern __sfr  __at (PWM4CON0_ADDR)                PWM4CON0;

//-----Bank13------------------
extern __sfr  __at (CWG1DBR_ADDR)                 CWG1DBR;
extern __sfr  __at (CWG1DBF_ADDR)                 CWG1DBF;
extern __sfr  __at (CWG1CON0_ADDR)                CWG1CON0;
extern __sfr  __at (CWG1CON1_ADDR)                CWG1CON1;
extern __sfr  __at (CWG1CON2_ADDR)                CWG1CON2;

//-----Bank30------------------
extern __sfr  __at (CLCDATA_ADDR)                 CLCDATA;
extern __sfr  __at (CLC1CON_ADDR)                 CLC1CON;
extern __sfr  __at (CLC1POL_ADDR)                 CLC1POL;
extern __sfr  __at (CLC1SEL0_ADDR)                CLC1SEL0;
extern __sfr  __at (CLC1SEL1_ADDR)                CLC1SEL1;
extern __sfr  __at (CLC1GLS0_ADDR)                CLC1GLS0;
extern __sfr  __at (CLC1GLS1_ADDR)                CLC1GLS1;
extern __sfr  __at (CLC1GLS2_ADDR)                CLC1GLS2;
extern __sfr  __at (CLC1GLS3_ADDR)                CLC1GLS3;
extern __sfr  __at (CLC2CON_ADDR)                 CLC2CON;
extern __sfr  __at (CLC2POL_ADDR)                 CLC2POL;
extern __sfr  __at (CLC2SEL0_ADDR)                CLC2SEL0;
extern __sfr  __at (CLC2SEL1_ADDR)                CLC2SEL1;
extern __sfr  __at (CLC2GLS0_ADDR)                CLC2GLS0;
extern __sfr  __at (CLC2GLS1_ADDR)                CLC2GLS1;
extern __sfr  __at (CLC2GLS2_ADDR)                CLC2GLS2;
extern __sfr  __at (CLC2GLS3_ADDR)                CLC2GLS3;
extern __sfr  __at (CLC3CON_ADDR)                 CLC3CON;
extern __sfr  __at (CLC3POL_ADDR)                 CLC3POL;
extern __sfr  __at (CLC3SEL0_ADDR)                CLC3SEL0;
extern __sfr  __at (CLC3SEL1_ADDR)                CLC3SEL1;
extern __sfr  __at (CLC3GLS0_ADDR)                CLC3GLS0;
extern __sfr  __at (CLC3GLS1_ADDR)                CLC3GLS1;
extern __sfr  __at (CLC3GLS2_ADDR)                CLC3GLS2;
extern __sfr  __at (CLC3GLS3_ADDR)                CLC3GLS3;
extern __sfr  __at (CLC4CON_ADDR)                 CLC4CON;
extern __sfr  __at (CLC4POL_ADDR)                 CLC4POL;
extern __sfr  __at (CLC4SEL0_ADDR)                CLC4SEL0;
extern __sfr  __at (CLC4SEL1_ADDR)                CLC4SEL1;
extern __sfr  __at (CLC4GLS0_ADDR)                CLC4GLS0;
extern __sfr  __at (CLC4GLS1_ADDR)                CLC4GLS1;
extern __sfr  __at (CLC4GLS2_ADDR)                CLC4GLS2;
extern __sfr  __at (CLC4GLS3_ADDR)                CLC4GLS3;

//-----Bank31------------------
extern __sfr  __at (ICDIO_ADDR)                   ICDIO;
extern __sfr  __at (ICDCON0_ADDR)                 ICDCON0;
extern __sfr  __at (ICDSTAT_ADDR)                 ICDSTAT;
extern __sfr  __at (DEVSEL_ADDR)                  DEVSEL;
extern __sfr  __at (ICDINSTL_ADDR)                ICDINSTL;
extern __sfr  __at (ICDINSTH_ADDR)                ICDINSTH;
extern __sfr  __at (ICDBK0CON_ADDR)               ICDBK0CON;
extern __sfr  __at (ICDBK0L_ADDR)                 ICDBK0L;
extern __sfr  __at (ICDBK0H_ADDR)                 ICDBK0H;
extern __sfr  __at (BSRICDSHAD_ADDR)              BSRICDSHAD;
extern __sfr  __at (STATUS_SHAD_ADDR)             STATUS_SHAD;
extern __sfr  __at (WREG_SHAD_ADDR)               WREG_SHAD;
extern __sfr  __at (BSR_SHAD_ADDR)                BSR_SHAD;
extern __sfr  __at (PCLATH_SHAD_ADDR)             PCLATH_SHAD;
extern __sfr  __at (FSR0L_SHAD_ADDR)              FSR0L_SHAD;
extern __sfr  __at (FSR0H_SHAD_ADDR)              FSR0H_SHAD;
extern __sfr  __at (FSR1L_SHAD_ADDR)              FSR1L_SHAD;
extern __sfr  __at (FSR1H_SHAD_ADDR)              FSR1H_SHAD;
extern __sfr  __at (STKPTR_ADDR)                  STKPTR;
extern __sfr  __at (TOSL_ADDR)                    TOSL;
extern __sfr  __at (TOSH_ADDR)                    TOSH;

//----- STATUS Bits -----------------------------------------------------


//----- BSR Bits -----------------------------------------------------


//----- INTCON Bits -----------------------------------------------------



//----- PORTA Bits -----------------------------------------------------


//----- PORTB Bits -----------------------------------------------------


//----- PORTC Bits -----------------------------------------------------


//----- PIR1 Bits -----------------------------------------------------


//----- PIR2 Bits -----------------------------------------------------


//----- PIR3 Bits -----------------------------------------------------


//----- T1CON Bits -----------------------------------------------------



//----- T1GCON Bits -----------------------------------------------------



//----- T2CON Bits -----------------------------------------------------



//----- TRISA Bits -----------------------------------------------------


//----- TRISB Bits -----------------------------------------------------


//----- TRISC Bits -----------------------------------------------------


//----- PIE1 Bits -----------------------------------------------------


//----- PIE2 Bits -----------------------------------------------------


//----- PIE3 Bits -----------------------------------------------------


//----- OPTION_REG Bits -----------------------------------------------------



//----- PCON Bits -----------------------------------------------------


//----- WDTCON Bits -----------------------------------------------------



//----- OSCCON Bits -----------------------------------------------------


//----- OSCSTAT Bits -----------------------------------------------------


//----- ADCON0 Bits -----------------------------------------------------




//----- ADCON1 Bits -----------------------------------------------------
//;;; Begin: Added in gputils

//;;; End: Added in gputils



//----- ADCON2 Bits -----------------------------------------------------


//----- LATA Bits -----------------------------------------------------


//----- LATB Bits -----------------------------------------------------


//----- LATC Bits -----------------------------------------------------


//----- CM1CON0 Bits -----------------------------------------------------


//----- CM1CON1 Bits -----------------------------------------------------



//----- CM2CON0 Bits -----------------------------------------------------


//----- CM2CON1 Bits -----------------------------------------------------



//----- CMOUT Bits -----------------------------------------------------


//----- BORCON Bits -----------------------------------------------------


//----- FVRCON Bits -----------------------------------------------------



//----- DACCON0 Bits -----------------------------------------------------


//----- DACCON1 Bits -----------------------------------------------------


//----- APFCON Bits -----------------------------------------------------



//----- ANSELA Bits -----------------------------------------------------



//----- ANSELB Bits -----------------------------------------------------



//----- ANSELC Bits -----------------------------------------------------



//----- PMCON1 Bits -----------------------------------------------------


//----- VREGCON Bits -----------------------------------------------------


//----- RCSTA Bits -----------------------------------------------------


//----- TXSTA Bits -----------------------------------------------------


//----- BAUDCON Bits -----------------------------------------------------


//----- WPUA Bits -----------------------------------------------------



//----- WPUB Bits -----------------------------------------------------



//----- SSP1STAT Bits -----------------------------------------------------


//----- SSPSTAT Bits -----------------------------------------------------


//----- SSP1CON1 Bits -----------------------------------------------------



//----- SSPCON Bits -----------------------------------------------------



//----- SSPCON1 Bits -----------------------------------------------------



//----- SSP1CON2 Bits -----------------------------------------------------


//----- SSPCON2 Bits -----------------------------------------------------


//----- SSP1CON3 Bits -----------------------------------------------------


//----- SSPCON3 Bits -----------------------------------------------------


//----- IOCAP Bits -----------------------------------------------------



//----- IOCAN Bits -----------------------------------------------------



//----- IOCAF Bits -----------------------------------------------------



//----- IOCBP Bits -----------------------------------------------------



//----- IOCBN Bits -----------------------------------------------------



//----- IOCBF Bits -----------------------------------------------------



//----- NCO1ACCL Bits -----------------------------------------------------


//----- NCO1ACCH Bits -----------------------------------------------------


//----- NCO1ACCU Bits -----------------------------------------------------


//----- NCO1INCL Bits -----------------------------------------------------


//----- NCO1INCH Bits -----------------------------------------------------


//----- NCO1CON Bits -----------------------------------------------------


//----- NCO1CLK Bits -----------------------------------------------------



//----- PWM1DCL Bits -----------------------------------------------------


//----- PWM1DCH Bits -----------------------------------------------------


//----- PWM1CON Bits -----------------------------------------------------


//----- PWM1CON0 Bits -----------------------------------------------------


//----- PWM2DCL Bits -----------------------------------------------------


//----- PWM2DCH Bits -----------------------------------------------------


//----- PWM2CON Bits -----------------------------------------------------


//----- PWM2CON0 Bits -----------------------------------------------------


//----- PWM3DCL Bits -----------------------------------------------------


//----- PWM3DCH Bits -----------------------------------------------------


//----- PWM3CON Bits -----------------------------------------------------


//----- PWM3CON0 Bits -----------------------------------------------------


//----- PWM4DCL Bits -----------------------------------------------------


//----- PWM4DCH Bits -----------------------------------------------------


//----- PWM4CON Bits -----------------------------------------------------


//----- PWM4CON0 Bits -----------------------------------------------------


//----- CWG1DBR Bits -----------------------------------------------------


//----- CWG1DBF Bits -----------------------------------------------------


//----- CWG1CON0 Bits -----------------------------------------------------



//----- CWG1CON1 Bits -----------------------------------------------------



//----- CWG1CON2 Bits -----------------------------------------------------


//----- CLCDATA Bits -----------------------------------------------------


//----- CLC1CON Bits -----------------------------------------------------




//----- CLC1POL Bits -----------------------------------------------------



//----- CLC1SEL0 Bits -----------------------------------------------------




//----- CLC1SEL1 Bits -----------------------------------------------------




//----- CLC1GLS0 Bits -----------------------------------------------------



//----- CLC1GLS1 Bits -----------------------------------------------------



//----- CLC1GLS2 Bits -----------------------------------------------------



//----- CLC1GLS3 Bits -----------------------------------------------------



//----- CLC2CON Bits -----------------------------------------------------




//----- CLC2POL Bits -----------------------------------------------------



//----- CLC2SEL0 Bits -----------------------------------------------------




//----- CLC2SEL1 Bits -----------------------------------------------------




//----- CLC2GLS0 Bits -----------------------------------------------------



//----- CLC2GLS1 Bits -----------------------------------------------------



//----- CLC2GLS2 Bits -----------------------------------------------------



//----- CLC2GLS3 Bits -----------------------------------------------------



//----- CLC3CON Bits -----------------------------------------------------




//----- CLC3POL Bits -----------------------------------------------------



//----- CLC3SEL0 Bits -----------------------------------------------------




//----- CLC3SEL1 Bits -----------------------------------------------------




//----- CLC3GLS0 Bits -----------------------------------------------------



//----- CLC3GLS1 Bits -----------------------------------------------------



//----- CLC3GLS2 Bits -----------------------------------------------------



//----- CLC3GLS3 Bits -----------------------------------------------------



//----- CLC4CON Bits -----------------------------------------------------




//----- CLC4POL Bits -----------------------------------------------------



//----- CLC4SEL0 Bits -----------------------------------------------------




//----- CLC4SEL1 Bits -----------------------------------------------------




//----- CLC4GLS0 Bits -----------------------------------------------------



//----- CLC4GLS1 Bits -----------------------------------------------------



//----- CLC4GLS2 Bits -----------------------------------------------------



//----- CLC4GLS3 Bits -----------------------------------------------------



//----- ICDIO Bits -----------------------------------------------------


//----- ICDCON0 Bits -----------------------------------------------------


//----- ICDSTAT Bits -----------------------------------------------------


//----- DEVSEL Bits -----------------------------------------------------


//----- ICDINSTL Bits -----------------------------------------------------


//----- ICDINSTH Bits -----------------------------------------------------


//----- ICDBK0CON Bits -----------------------------------------------------


//----- ICDBK0L Bits -----------------------------------------------------


//----- ICDBK0H Bits -----------------------------------------------------


//----- STATUS_SHAD Bits -----------------------------------------------------



//==========================================================================
//
//       RAM Definitions
//
//==========================================================================
//        __MAXRAM  H'0FFF'
//        __BADRAM  H'000F'
//        __BADRAM  H'0010'
//        __BADRAM  H'0014'
//        __BADRAM  H'001D'-H'001E'
//        __BADRAM  H'001F'
//        __BADRAM  H'008F'
//        __BADRAM  H'0090'
//        __BADRAM  H'0094'
//        __BADRAM  H'0098'
//        __BADRAM  H'010F'-H'0110'
//        __BADRAM  H'011A'-H'011C'
//        __BADRAM  H'011E'-H'011F'
//        __BADRAM  H'018F'-H'0190'
//        __BADRAM  H'0198'
//        __BADRAM  H'020E'-H'0210'
//        __BADRAM  H'0218'-H'021F'
//        __BADRAM  H'028C'-H'029F'
//        __BADRAM  H'030C'-H'031F'
//        __BADRAM  H'0330'-H'036F'
//        __BADRAM  H'038C'-H'0390'
//        __BADRAM  H'0397'-H'039F'
//        __BADRAM  H'03A0'-H'03EF'
//        __BADRAM  H'040C'-H'041F'
//        __BADRAM  H'0420'-H'046F'
//        __BADRAM  H'048C'-H'0497'
//        __BADRAM  H'04A0'-H'04EF'
//        __BADRAM  H'050C'-H'051F'
//        __BADRAM  H'0520'-H'056F'
//        __BADRAM  H'058C'-H'059F'
//        __BADRAM  H'05A0'-H'05EF'
//        __BADRAM  H'060C'-H'0610'
//        __BADRAM  H'061D'-H'061F'
//        __BADRAM  H'0620'-H'066F'
//        __BADRAM  H'068C'-H'0690'
//        __BADRAM  H'0696'-H'069F'
//        __BADRAM  H'06A0'-H'06EF'
//        __BADRAM  H'070C'-H'071F'
//        __BADRAM  H'0720'-H'076F'
//        __BADRAM  H'078C'-H'079F'
//        __BADRAM  H'07A0'-H'07EF'
//        __BADRAM  H'080C'-H'081F'
//        __BADRAM  H'0820'-H'086F'
//        __BADRAM  H'088C'-H'089F'
//        __BADRAM  H'08A0'-H'08EF'
//        __BADRAM  H'090C'-H'091F'
//        __BADRAM  H'0920'-H'096F'
//        __BADRAM  H'098C'-H'099F'
//        __BADRAM  H'09A0'-H'09EF'
//        __BADRAM  H'0A0C'-H'0A1F'
//        __BADRAM  H'0A20'-H'0A6F'
//        __BADRAM  H'0A8C'-H'0A9F'
//        __BADRAM  H'0AA0'-H'0AEF'
//        __BADRAM  H'0B0C'-H'0B1F'
//        __BADRAM  H'0B20'-H'0B6F'
//        __BADRAM  H'0B8C'-H'0B9F'
//        __BADRAM  H'0BA0'-H'0BEF'
//        __BADRAM  H'0C0C'-H'0C1F'
//        __BADRAM  H'0C20'-H'0C6F'
//        __BADRAM  H'0C8C'-H'0C9F'
//        __BADRAM  H'0CA0'-H'0CEF'
//        __BADRAM  H'0D0C'-H'0D1F'
//        __BADRAM  H'0D20'-H'0D6F'
//        __BADRAM  H'0D8C'-H'0D9F'
//        __BADRAM  H'0DA0'-H'0DEF'
//        __BADRAM  H'0E0C'-H'0E1F'
//        __BADRAM  H'0E20'-H'0E6F'
//        __BADRAM  H'0E8C'-H'0E9F'
//        __BADRAM  H'0EA0'-H'0EEF'
//        __BADRAM  H'0F0C'-H'0F0E'
//        __BADRAM  H'0F30'-H'0F6F'
//        __BADRAM  H'0F8E'-H'0F90'
//        __BADRAM  H'0F92'-H'0F94'
//        __BADRAM  H'0F98'-H'0F9B'
//        __BADRAM  H'0F9F'
//        __BADRAM  H'0FA0'-H'0FBF'
//        __BADRAM  H'0FC0'-H'0FCF'
//        __BADRAM  H'0FD0'-H'0FE2'
//        __BADRAM  H'0FEC'

//==========================================================================
//
//       Configuration Bits
//
//   NAME            Address
//   CONFIG1           8007h
//   CONFIG2           8008h
//
//==========================================================================

// The following is an assignment of address values for all of the
// configuration registers for the purpose of table reads
#define _CONFIG1             0x8007
#define _CONFIG2             0x8008

//----- CONFIG1 Options --------------------------------------------------
#define _FOSC_LP             0xFFF8    // LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins
#define _FOSC_XT             0xFFF9    // XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins
#define _FOSC_HS             0xFFFA    // HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins
#define _FOSC_EXTRC          0xFFFB    // EXTRC oscillator: External RC circuit connected to CLKIN pin
#define _FOSC_INTOSC         0xFFFC    // INTOSC oscillator: I/O function on CLKIN pin
#define _FOSC_ECL            0xFFFD    // ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins
#define _FOSC_ECM            0xFFFE    // ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins
#define _FOSC_ECH            0xFFFF    // ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins

#define _WDTE_OFF            0xFFE7    // WDT disabled
#define _WDTE_SWDTEN         0xFFEF    // WDT controlled by the SWDTEN bit in the WDTCON register
#define _WDTE_NSLEEP         0xFFF7    // WDT enabled while running and disabled in Sleep
#define _WDTE_ON             0xFFFF    // WDT enabled

#define _PWRTE_ON            0xFFDF    // PWRT enabled
#define _PWRTE_OFF           0xFFFF    // PWRT disabled

#define _MCLRE_OFF           0xFFBF    // MCLR/VPP pin function is digital input
#define _MCLRE_ON            0xFFFF    // MCLR/VPP pin function is MCLR

#define _CP_ON               0xFF7F    // Program memory code protection is enabled
#define _CP_OFF              0xFFFF    // Program memory code protection is disabled

#define _BOREN_OFF           0xF9FF    // Brown-out Reset disabled
#define _BOREN_SBODEN        0xFBFF    // Brown-out Reset controlled by the SBOREN bit in the BORCON register
#define _BOREN_NSLEEP        0xFDFF    // Brown-out Reset enabled while running and disabled in Sleep
#define _BOREN_ON            0xFFFF    // Brown-out Reset enabled

#define _CLKOUTEN_ON         0xF7FF    // CLKOUT function is enabled on the CLKOUT pin
#define _CLKOUTEN_OFF        0xFFFF    // CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin

#define _IESO_OFF            0xEFFF    // Internal/External Switchover Mode is disabled
#define _IESO_ON             0xFFFF    // Internal/External Switchover Mode is enabled

#define _FCMEN_OFF           0xDFFF    // Fail-Safe Clock Monitor is disabled
#define _FCMEN_ON            0xFFFF    // Fail-Safe Clock Monitor is enabled

//----- CONFIG2 Options --------------------------------------------------
#define _WRT_ALL             0xFFFC    // 000h to 1FFFh write protected, no addresses may be modified by EECON control
#define _WRT_HALF            0xFFFD    // 000h to FFFh write protected, 1000h to 1FFFh may be modified by EECON control
#define _WRT_BOOT            0xFFFE    // 000h to 1FFh write protected, 200h to 1FFFh may be modified by EECON control
#define _WRT_OFF             0xFFFF    // Write protection off

#define _STVREN_OFF          0xFDFF    // Stack Overflow or Underflow will not cause a Reset
#define _STVREN_ON           0xFFFF    // Stack Overflow or Underflow will cause a Reset

#define _BORV_HI             0xFBFF    // Brown-out Reset Voltage (Vbor), high trip point selected.
#define _BORV_LO             0xFFFF    // Brown-out Reset Voltage (Vbor), low trip point selected.

#define _LPBOR_ON            0xF7FF    // Low-Power BOR is enabled
#define _LPBOR_OFF           0xFFFF    // Low-Power BOR is disabled

#define _LVP_OFF             0xDFFF    // High-voltage on MCLR/VPP must be used for programming
#define _LVP_ON              0xFFFF    // Low-voltage programming enabled

//----- DEVID Equates --------------------------------------------------
#define _DEVID1              0x8006

//----- IDLOC Equates --------------------------------------------------
#define _IDLOC0              0x8000
#define _IDLOC1              0x8001
#define _IDLOC2              0x8002
#define _IDLOC3              0x8003

//         LIST

// ----- ADCON0 bits --------------------
typedef union {
  struct {
    unsigned char ADON:1;
    unsigned char GO_NOT_DONE:1;
    unsigned char CHS0:1;
    unsigned char CHS1:1;
    unsigned char CHS2:1;
    unsigned char CHS3:1;
    unsigned char CHS4:1;
    unsigned char :1;
  };
  struct {
    unsigned char :1;
    unsigned char ADGO:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
  struct {
    unsigned char :1;
    unsigned char GO:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __ADCON0bits_t;
extern volatile __ADCON0bits_t __at(ADCON0_ADDR) ADCON0bits;

// ----- ADCON1 bits --------------------
typedef union {
  struct {
    unsigned char ADPREF0:1;
    unsigned char ADPREF1:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char ADCS0:1;
    unsigned char ADCS1:1;
    unsigned char ADCS2:1;
    unsigned char ADFM:1;
  };
} __ADCON1bits_t;
extern volatile __ADCON1bits_t __at(ADCON1_ADDR) ADCON1bits;

// ----- ADCON2 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char TRIGSEL0:1;
    unsigned char TRIGSEL1:1;
    unsigned char TRIGSEL2:1;
    unsigned char TRIGSEL3:1;
  };
} __ADCON2bits_t;
extern volatile __ADCON2bits_t __at(ADCON2_ADDR) ADCON2bits;

// ----- ANSELA bits --------------------
typedef union {
  struct {
    unsigned char ANSA0:1;
    unsigned char ANSA1:1;
    unsigned char ANSA2:1;
    unsigned char :1;
    unsigned char ANSA4:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __ANSELAbits_t;
extern volatile __ANSELAbits_t __at(ANSELA_ADDR) ANSELAbits;

// ----- ANSELB bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char ANSB4:1;
    unsigned char ANSB5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __ANSELBbits_t;
extern volatile __ANSELBbits_t __at(ANSELB_ADDR) ANSELBbits;

// ----- ANSELC bits --------------------
typedef union {
  struct {
    unsigned char ANSC0:1;
    unsigned char ANSC1:1;
    unsigned char ANSC2:1;
    unsigned char ANSC3:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char ANSC6:1;
    unsigned char ANSC7:1;
  };
} __ANSELCbits_t;
extern volatile __ANSELCbits_t __at(ANSELC_ADDR) ANSELCbits;

// ----- APFCON bits --------------------
typedef union {
  struct {
    unsigned char NCO1SEL:1;
    unsigned char CLC1SEL:1;
    unsigned char :1;
    unsigned char T1GSEL:1;
    unsigned char SSSEL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
  struct {
    unsigned char NCOSEL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __APFCONbits_t;
extern volatile __APFCONbits_t __at(APFCON_ADDR) APFCONbits;

// ----- BAUDCON bits --------------------
typedef union {
  struct {
    unsigned char ABDEN:1;
    unsigned char WUE:1;
    unsigned char :1;
    unsigned char BRG16:1;
    unsigned char SCKP:1;
    unsigned char :1;
    unsigned char RCIDL:1;
    unsigned char ABDOVF:1;
  };
} __BAUDCONbits_t;
extern volatile __BAUDCONbits_t __at(BAUDCON_ADDR) BAUDCONbits;

// ----- BORCON bits --------------------
typedef union {
  struct {
    unsigned char BORRDY:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char BORFS:1;
    unsigned char SBOREN:1;
  };
} __BORCONbits_t;
extern volatile __BORCONbits_t __at(BORCON_ADDR) BORCONbits;

// ----- BSR bits --------------------
typedef union {
  struct {
    unsigned char BSR0:1;
    unsigned char BSR1:1;
    unsigned char BSR2:1;
    unsigned char BSR3:1;
    unsigned char BSR4:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __BSRbits_t;
extern volatile __BSRbits_t __at(BSR_ADDR) BSRbits;

// ----- CLC1CON bits --------------------
typedef union {
  struct {
    unsigned char LC1MODE0:1;
    unsigned char LC1MODE1:1;
    unsigned char LC1MODE2:1;
    unsigned char LC1INTN:1;
    unsigned char LC1INTP:1;
    unsigned char LC1OUT:1;
    unsigned char LC1OE:1;
    unsigned char LC1EN:1;
  };
  struct {
    unsigned char LCMODE0:1;
    unsigned char LCMODE1:1;
    unsigned char LCMODE2:1;
    unsigned char LCINTN:1;
    unsigned char LCINTP:1;
    unsigned char LCOUT:1;
    unsigned char LCOE:1;
    unsigned char LCEN:1;
  };
} __CLC1CONbits_t;
extern volatile __CLC1CONbits_t __at(CLC1CON_ADDR) CLC1CONbits;

// ----- CLC1GLS0 bits --------------------
typedef union {
  struct {
    unsigned char LC1G1D1N:1;
    unsigned char LC1G1D1T:1;
    unsigned char LC1G1D2N:1;
    unsigned char LC1G1D2T:1;
    unsigned char LC1G1D3N:1;
    unsigned char LC1G1D3T:1;
    unsigned char LC1G1D4N:1;
    unsigned char LC1G1D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC1GLS0bits_t;
extern volatile __CLC1GLS0bits_t __at(CLC1GLS0_ADDR) CLC1GLS0bits;

// ----- CLC1GLS1 bits --------------------
typedef union {
  struct {
    unsigned char LC1G2D1N:1;
    unsigned char LC1G2D1T:1;
    unsigned char LC1G2D2N:1;
    unsigned char LC1G2D2T:1;
    unsigned char LC1G2D3N:1;
    unsigned char LC1G2D3T:1;
    unsigned char LC1G2D4N:1;
    unsigned char LC1G2D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC1GLS1bits_t;
extern volatile __CLC1GLS1bits_t __at(CLC1GLS1_ADDR) CLC1GLS1bits;

// ----- CLC1GLS2 bits --------------------
typedef union {
  struct {
    unsigned char LC1G3D1N:1;
    unsigned char LC1G3D1T:1;
    unsigned char LC1G3D2N:1;
    unsigned char LC1G3D2T:1;
    unsigned char LC1G3D3N:1;
    unsigned char LC1G3D3T:1;
    unsigned char LC1G3D4N:1;
    unsigned char LC1G3D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC1GLS2bits_t;
extern volatile __CLC1GLS2bits_t __at(CLC1GLS2_ADDR) CLC1GLS2bits;

// ----- CLC1GLS3 bits --------------------
typedef union {
  struct {
    unsigned char LC1G4D1N:1;
    unsigned char LC1G4D1T:1;
    unsigned char LC1G4D2N:1;
    unsigned char LC1G4D2T:1;
    unsigned char LC1G4D3N:1;
    unsigned char LC1G4D3T:1;
    unsigned char LC1G4D4N:1;
    unsigned char LC1G4D4T:1;
  };
  struct {
    unsigned char G4D1N:1;
    unsigned char G4D1T:1;
    unsigned char G4D2N:1;
    unsigned char G4D2T:1;
    unsigned char G4D3N:1;
    unsigned char G4D3T:1;
    unsigned char G4D4N:1;
    unsigned char G4D4T:1;
  };
} __CLC1GLS3bits_t;
extern volatile __CLC1GLS3bits_t __at(CLC1GLS3_ADDR) CLC1GLS3bits;

// ----- CLC1POL bits --------------------
typedef union {
  struct {
    unsigned char LC1G1POL:1;
    unsigned char LC1G2POL:1;
    unsigned char LC1G3POL:1;
    unsigned char LC1G4POL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char LC1POL:1;
  };
  struct {
    unsigned char G1POL:1;
    unsigned char G2POL:1;
    unsigned char G3POL:1;
    unsigned char G4POL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char POL:1;
  };
} __CLC1POLbits_t;
extern volatile __CLC1POLbits_t __at(CLC1POL_ADDR) CLC1POLbits;

// ----- CLC1SEL0 bits --------------------
typedef union {
  struct {
    unsigned char LC1D1S0:1;
    unsigned char LC1D1S1:1;
    unsigned char LC1D1S2:1;
    unsigned char :1;
    unsigned char LC1D2S0:1;
    unsigned char LC1D2S1:1;
    unsigned char LC1D2S2:1;
    unsigned char :1;
  };
  struct {
    unsigned char D1S0:1;
    unsigned char D1S1:1;
    unsigned char D1S2:1;
    unsigned char :1;
    unsigned char D2S0:1;
    unsigned char D2S1:1;
    unsigned char D2S2:1;
    unsigned char :1;
  };
} __CLC1SEL0bits_t;
extern volatile __CLC1SEL0bits_t __at(CLC1SEL0_ADDR) CLC1SEL0bits;

// ----- CLC1SEL1 bits --------------------
typedef union {
  struct {
    unsigned char LC1D3S0:1;
    unsigned char LC1D3S1:1;
    unsigned char LC1D3S2:1;
    unsigned char :1;
    unsigned char LC1D4S0:1;
    unsigned char LC1D4S1:1;
    unsigned char LC1D4S2:1;
    unsigned char :1;
  };
  struct {
    unsigned char D3S0:1;
    unsigned char D3S1:1;
    unsigned char D3S2:1;
    unsigned char :1;
    unsigned char D4S0:1;
    unsigned char D4S1:1;
    unsigned char D4S2:1;
    unsigned char :1;
  };
} __CLC1SEL1bits_t;
extern volatile __CLC1SEL1bits_t __at(CLC1SEL1_ADDR) CLC1SEL1bits;

// ----- CLC2CON bits --------------------
typedef union {
  struct {
    unsigned char LC2MODE0:1;
    unsigned char LC2MODE1:1;
    unsigned char LC2MODE2:1;
    unsigned char LC2INTN:1;
    unsigned char LC2INTP:1;
    unsigned char LC2OUT:1;
    unsigned char LC2OE:1;
    unsigned char LC2EN:1;
  };
  struct {
    unsigned char LCMODE0:1;
    unsigned char LCMODE1:1;
    unsigned char LCMODE2:1;
    unsigned char LCINTN:1;
    unsigned char LCINTP:1;
    unsigned char LCOUT:1;
    unsigned char LCOE:1;
    unsigned char LCEN:1;
  };
} __CLC2CONbits_t;
extern volatile __CLC2CONbits_t __at(CLC2CON_ADDR) CLC2CONbits;

// ----- CLC2GLS0 bits --------------------
typedef union {
  struct {
    unsigned char LC2G1D1N:1;
    unsigned char LC2G1D1T:1;
    unsigned char LC2G1D2N:1;
    unsigned char LC2G1D2T:1;
    unsigned char LC2G1D3N:1;
    unsigned char LC2G1D3T:1;
    unsigned char LC2G1D4N:1;
    unsigned char LC2G1D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC2GLS0bits_t;
extern volatile __CLC2GLS0bits_t __at(CLC2GLS0_ADDR) CLC2GLS0bits;

// ----- CLC2GLS1 bits --------------------
typedef union {
  struct {
    unsigned char LC2G2D1N:1;
    unsigned char LC2G2D1T:1;
    unsigned char LC2G2D2N:1;
    unsigned char LC2G2D2T:1;
    unsigned char LC2G2D3N:1;
    unsigned char LC2G2D3T:1;
    unsigned char LC2G2D4N:1;
    unsigned char LC2G2D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC2GLS1bits_t;
extern volatile __CLC2GLS1bits_t __at(CLC2GLS1_ADDR) CLC2GLS1bits;

// ----- CLC2GLS2 bits --------------------
typedef union {
  struct {
    unsigned char LC2G3D1N:1;
    unsigned char LC2G3D1T:1;
    unsigned char LC2G3D2N:1;
    unsigned char LC2G3D2T:1;
    unsigned char LC2G3D3N:1;
    unsigned char LC2G3D3T:1;
    unsigned char LC2G3D4N:1;
    unsigned char LC2G3D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC2GLS2bits_t;
extern volatile __CLC2GLS2bits_t __at(CLC2GLS2_ADDR) CLC2GLS2bits;

// ----- CLC2GLS3 bits --------------------
typedef union {
  struct {
    unsigned char LC2G4D1N:1;
    unsigned char LC2G4D1T:1;
    unsigned char LC2G4D2N:1;
    unsigned char LC2G4D2T:1;
    unsigned char LC2G4D3N:1;
    unsigned char LC2G4D3T:1;
    unsigned char LC2G4D4N:1;
    unsigned char LC2G4D4T:1;
  };
  struct {
    unsigned char G4D1N:1;
    unsigned char G4D1T:1;
    unsigned char G4D2N:1;
    unsigned char G4D2T:1;
    unsigned char G4D3N:1;
    unsigned char G4D3T:1;
    unsigned char G4D4N:1;
    unsigned char G4D4T:1;
  };
} __CLC2GLS3bits_t;
extern volatile __CLC2GLS3bits_t __at(CLC2GLS3_ADDR) CLC2GLS3bits;

// ----- CLC2POL bits --------------------
typedef union {
  struct {
    unsigned char LC2G1POL:1;
    unsigned char LC2G2POL:1;
    unsigned char LC2G3POL:1;
    unsigned char LC2G4POL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char LC2POL:1;
  };
  struct {
    unsigned char G1POL:1;
    unsigned char G2POL:1;
    unsigned char G3POL:1;
    unsigned char G4POL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char POL:1;
  };
} __CLC2POLbits_t;
extern volatile __CLC2POLbits_t __at(CLC2POL_ADDR) CLC2POLbits;

// ----- CLC2SEL0 bits --------------------
typedef union {
  struct {
    unsigned char LC2D1S0:1;
    unsigned char LC2D1S1:1;
    unsigned char LC2D1S2:1;
    unsigned char :1;
    unsigned char LC2D2S0:1;
    unsigned char LC2D2S1:1;
    unsigned char LC2D2S2:1;
    unsigned char :1;
  };
  struct {
    unsigned char D1S0:1;
    unsigned char D1S1:1;
    unsigned char D1S2:1;
    unsigned char :1;
    unsigned char D2S0:1;
    unsigned char D2S1:1;
    unsigned char D2S2:1;
    unsigned char :1;
  };
} __CLC2SEL0bits_t;
extern volatile __CLC2SEL0bits_t __at(CLC2SEL0_ADDR) CLC2SEL0bits;

// ----- CLC2SEL1 bits --------------------
typedef union {
  struct {
    unsigned char LC2D3S0:1;
    unsigned char LC2D3S1:1;
    unsigned char LC2D3S2:1;
    unsigned char :1;
    unsigned char LC2D4S0:1;
    unsigned char LC2D4S1:1;
    unsigned char LC2D4S2:1;
    unsigned char :1;
  };
  struct {
    unsigned char D3S0:1;
    unsigned char D3S1:1;
    unsigned char D3S2:1;
    unsigned char :1;
    unsigned char D4S0:1;
    unsigned char D4S1:1;
    unsigned char D4S2:1;
    unsigned char :1;
  };
} __CLC2SEL1bits_t;
extern volatile __CLC2SEL1bits_t __at(CLC2SEL1_ADDR) CLC2SEL1bits;

// ----- CLC3CON bits --------------------
typedef union {
  struct {
    unsigned char LC3MODE0:1;
    unsigned char LC3MODE1:1;
    unsigned char LC3MODE2:1;
    unsigned char LC3INTN:1;
    unsigned char LC3INTP:1;
    unsigned char LC3OUT:1;
    unsigned char LC3OE:1;
    unsigned char LC3EN:1;
  };
  struct {
    unsigned char LCMODE0:1;
    unsigned char LCMODE1:1;
    unsigned char LCMODE2:1;
    unsigned char LCINTN:1;
    unsigned char LCINTP:1;
    unsigned char LCOUT:1;
    unsigned char LCOE:1;
    unsigned char LCEN:1;
  };
} __CLC3CONbits_t;
extern volatile __CLC3CONbits_t __at(CLC3CON_ADDR) CLC3CONbits;

// ----- CLC3GLS0 bits --------------------
typedef union {
  struct {
    unsigned char LC3G1D1N:1;
    unsigned char LC3G1D1T:1;
    unsigned char LC3G1D2N:1;
    unsigned char LC3G1D2T:1;
    unsigned char LC3G1D3N:1;
    unsigned char LC3G1D3T:1;
    unsigned char LC3G1D4N:1;
    unsigned char LC3G1D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC3GLS0bits_t;
extern volatile __CLC3GLS0bits_t __at(CLC3GLS0_ADDR) CLC3GLS0bits;

// ----- CLC3GLS1 bits --------------------
typedef union {
  struct {
    unsigned char LC3G2D1N:1;
    unsigned char LC3G2D1T:1;
    unsigned char LC3G2D2N:1;
    unsigned char LC3G2D2T:1;
    unsigned char LC3G2D3N:1;
    unsigned char LC3G2D3T:1;
    unsigned char LC3G2D4N:1;
    unsigned char LC3G2D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC3GLS1bits_t;
extern volatile __CLC3GLS1bits_t __at(CLC3GLS1_ADDR) CLC3GLS1bits;

// ----- CLC3GLS2 bits --------------------
typedef union {
  struct {
    unsigned char LC3G3D1N:1;
    unsigned char LC3G3D1T:1;
    unsigned char LC3G3D2N:1;
    unsigned char LC3G3D2T:1;
    unsigned char LC3G3D3N:1;
    unsigned char LC3G3D3T:1;
    unsigned char LC3G3D4N:1;
    unsigned char LC3G3D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC3GLS2bits_t;
extern volatile __CLC3GLS2bits_t __at(CLC3GLS2_ADDR) CLC3GLS2bits;

// ----- CLC3GLS3 bits --------------------
typedef union {
  struct {
    unsigned char LC3G4D1N:1;
    unsigned char LC3G4D1T:1;
    unsigned char LC3G4D2N:1;
    unsigned char LC3G4D2T:1;
    unsigned char LC3G4D3N:1;
    unsigned char LC3G4D3T:1;
    unsigned char LC3G4D4N:1;
    unsigned char LC3G4D4T:1;
  };
  struct {
    unsigned char G4D1N:1;
    unsigned char G4D1T:1;
    unsigned char G4D2N:1;
    unsigned char G4D2T:1;
    unsigned char G4D3N:1;
    unsigned char G4D3T:1;
    unsigned char G4D4N:1;
    unsigned char G4D4T:1;
  };
} __CLC3GLS3bits_t;
extern volatile __CLC3GLS3bits_t __at(CLC3GLS3_ADDR) CLC3GLS3bits;

// ----- CLC3POL bits --------------------
typedef union {
  struct {
    unsigned char LC3G1POL:1;
    unsigned char LC3G2POL:1;
    unsigned char LC3G3POL:1;
    unsigned char LC3G4POL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char LC3POL:1;
  };
  struct {
    unsigned char G1POL:1;
    unsigned char G2POL:1;
    unsigned char G3POL:1;
    unsigned char G4POL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char POL:1;
  };
} __CLC3POLbits_t;
extern volatile __CLC3POLbits_t __at(CLC3POL_ADDR) CLC3POLbits;

// ----- CLC3SEL0 bits --------------------
typedef union {
  struct {
    unsigned char LC3D1S0:1;
    unsigned char LC3D1S1:1;
    unsigned char LC3D1S2:1;
    unsigned char :1;
    unsigned char LC3D2S0:1;
    unsigned char LC3D2S1:1;
    unsigned char LC3D2S2:1;
    unsigned char :1;
  };
  struct {
    unsigned char D1S0:1;
    unsigned char D1S1:1;
    unsigned char D1S2:1;
    unsigned char :1;
    unsigned char D2S0:1;
    unsigned char D2S1:1;
    unsigned char D2S2:1;
    unsigned char :1;
  };
} __CLC3SEL0bits_t;
extern volatile __CLC3SEL0bits_t __at(CLC3SEL0_ADDR) CLC3SEL0bits;

// ----- CLC3SEL1 bits --------------------
typedef union {
  struct {
    unsigned char LC3D3S0:1;
    unsigned char LC3D3S1:1;
    unsigned char LC3D3S2:1;
    unsigned char :1;
    unsigned char LC3D4S0:1;
    unsigned char LC3D4S1:1;
    unsigned char LC3D4S2:1;
    unsigned char :1;
  };
  struct {
    unsigned char D3S0:1;
    unsigned char D3S1:1;
    unsigned char D3S2:1;
    unsigned char :1;
    unsigned char D4S0:1;
    unsigned char D4S1:1;
    unsigned char D4S2:1;
    unsigned char :1;
  };
} __CLC3SEL1bits_t;
extern volatile __CLC3SEL1bits_t __at(CLC3SEL1_ADDR) CLC3SEL1bits;

// ----- CLC4CON bits --------------------
typedef union {
  struct {
    unsigned char LC4MODE0:1;
    unsigned char LC4MODE1:1;
    unsigned char LC4MODE2:1;
    unsigned char LC4INTN:1;
    unsigned char LC4INTP:1;
    unsigned char LC4OUT:1;
    unsigned char LC4OE:1;
    unsigned char LC4EN:1;
  };
  struct {
    unsigned char LCMODE0:1;
    unsigned char LCMODE1:1;
    unsigned char LCMODE2:1;
    unsigned char LCINTN:1;
    unsigned char LCINTP:1;
    unsigned char LCOUT:1;
    unsigned char LCOE:1;
    unsigned char LCEN:1;
  };
} __CLC4CONbits_t;
extern volatile __CLC4CONbits_t __at(CLC4CON_ADDR) CLC4CONbits;

// ----- CLC4GLS0 bits --------------------
typedef union {
  struct {
    unsigned char LC4G1D1N:1;
    unsigned char LC4G1D1T:1;
    unsigned char LC4G1D2N:1;
    unsigned char LC4G1D2T:1;
    unsigned char LC4G1D3N:1;
    unsigned char LC4G1D3T:1;
    unsigned char LC4G1D4N:1;
    unsigned char LC4G1D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC4GLS0bits_t;
extern volatile __CLC4GLS0bits_t __at(CLC4GLS0_ADDR) CLC4GLS0bits;

// ----- CLC4GLS1 bits --------------------
typedef union {
  struct {
    unsigned char LC4G2D1N:1;
    unsigned char LC4G2D1T:1;
    unsigned char LC4G2D2N:1;
    unsigned char LC4G2D2T:1;
    unsigned char LC4G2D3N:1;
    unsigned char LC4G2D3T:1;
    unsigned char LC4G2D4N:1;
    unsigned char LC4G2D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC4GLS1bits_t;
extern volatile __CLC4GLS1bits_t __at(CLC4GLS1_ADDR) CLC4GLS1bits;

// ----- CLC4GLS2 bits --------------------
typedef union {
  struct {
    unsigned char LC4G3D1N:1;
    unsigned char LC4G3D1T:1;
    unsigned char LC4G3D2N:1;
    unsigned char LC4G3D2T:1;
    unsigned char LC4G3D3N:1;
    unsigned char LC4G3D3T:1;
    unsigned char LC4G3D4N:1;
    unsigned char LC4G3D4T:1;
  };
  struct {
    unsigned char D1N:1;
    unsigned char D1T:1;
    unsigned char D2N:1;
    unsigned char D2T:1;
    unsigned char D3N:1;
    unsigned char D3T:1;
    unsigned char D4N:1;
    unsigned char D4T:1;
  };
} __CLC4GLS2bits_t;
extern volatile __CLC4GLS2bits_t __at(CLC4GLS2_ADDR) CLC4GLS2bits;

// ----- CLC4GLS3 bits --------------------
typedef union {
  struct {
    unsigned char LC4G4D1N:1;
    unsigned char LC4G4D1T:1;
    unsigned char LC4G4D2N:1;
    unsigned char LC4G4D2T:1;
    unsigned char LC4G4D3N:1;
    unsigned char LC4G4D3T:1;
    unsigned char LC4G4D4N:1;
    unsigned char LC4G4D4T:1;
  };
  struct {
    unsigned char G4D1N:1;
    unsigned char G4D1T:1;
    unsigned char G4D2N:1;
    unsigned char G4D2T:1;
    unsigned char G4D3N:1;
    unsigned char G4D3T:1;
    unsigned char G4D4N:1;
    unsigned char G4D4T:1;
  };
} __CLC4GLS3bits_t;
extern volatile __CLC4GLS3bits_t __at(CLC4GLS3_ADDR) CLC4GLS3bits;

// ----- CLC4POL bits --------------------
typedef union {
  struct {
    unsigned char LC4G1POL:1;
    unsigned char LC4G2POL:1;
    unsigned char LC4G3POL:1;
    unsigned char LC4G4POL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char LC4POL:1;
  };
  struct {
    unsigned char G1POL:1;
    unsigned char G2POL:1;
    unsigned char G3POL:1;
    unsigned char G4POL:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char POL:1;
  };
} __CLC4POLbits_t;
extern volatile __CLC4POLbits_t __at(CLC4POL_ADDR) CLC4POLbits;

// ----- CLC4SEL0 bits --------------------
typedef union {
  struct {
    unsigned char LC4D1S0:1;
    unsigned char LC4D1S1:1;
    unsigned char LC4D1S2:1;
    unsigned char :1;
    unsigned char LC4D2S0:1;
    unsigned char LC4D2S1:1;
    unsigned char LC4D2S2:1;
    unsigned char :1;
  };
  struct {
    unsigned char D1S0:1;
    unsigned char D1S1:1;
    unsigned char D1S2:1;
    unsigned char :1;
    unsigned char D2S0:1;
    unsigned char D2S1:1;
    unsigned char D2S2:1;
    unsigned char :1;
  };
} __CLC4SEL0bits_t;
extern volatile __CLC4SEL0bits_t __at(CLC4SEL0_ADDR) CLC4SEL0bits;

// ----- CLC4SEL1 bits --------------------
typedef union {
  struct {
    unsigned char LC4D3S0:1;
    unsigned char LC4D3S1:1;
    unsigned char LC4D3S2:1;
    unsigned char :1;
    unsigned char LC4D4S0:1;
    unsigned char LC4D4S1:1;
    unsigned char LC4D4S2:1;
    unsigned char :1;
  };
  struct {
    unsigned char D3S0:1;
    unsigned char D3S1:1;
    unsigned char D3S2:1;
    unsigned char :1;
    unsigned char D4S0:1;
    unsigned char D4S1:1;
    unsigned char D4S2:1;
    unsigned char :1;
  };
} __CLC4SEL1bits_t;
extern volatile __CLC4SEL1bits_t __at(CLC4SEL1_ADDR) CLC4SEL1bits;

// ----- CLCDATA bits --------------------
typedef union {
  struct {
    unsigned char MCLC1OUT:1;
    unsigned char MCLC2OUT:1;
    unsigned char MCLC3OUT:1;
    unsigned char MCLC4OUT:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __CLCDATAbits_t;
extern volatile __CLCDATAbits_t __at(CLCDATA_ADDR) CLCDATAbits;

// ----- CM1CON0 bits --------------------
typedef union {
  struct {
    unsigned char C1SYNC:1;
    unsigned char C1HYS:1;
    unsigned char C1SP:1;
    unsigned char :1;
    unsigned char C1POL:1;
    unsigned char C1OE:1;
    unsigned char C1OUT:1;
    unsigned char C1ON:1;
  };
} __CM1CON0bits_t;
extern volatile __CM1CON0bits_t __at(CM1CON0_ADDR) CM1CON0bits;

// ----- CM1CON1 bits --------------------
typedef union {
  struct {
    unsigned char C1NCH0:1;
    unsigned char C1NCH1:1;
    unsigned char C1NCH2:1;
    unsigned char :1;
    unsigned char C1PCH0:1;
    unsigned char C1PCH1:1;
    unsigned char C1INTN:1;
    unsigned char C1INTP:1;
  };
} __CM1CON1bits_t;
extern volatile __CM1CON1bits_t __at(CM1CON1_ADDR) CM1CON1bits;

// ----- CM2CON0 bits --------------------
typedef union {
  struct {
    unsigned char C2SYNC:1;
    unsigned char C2HYS:1;
    unsigned char C2SP:1;
    unsigned char :1;
    unsigned char C2POL:1;
    unsigned char C2OE:1;
    unsigned char C2OUT:1;
    unsigned char C2ON:1;
  };
} __CM2CON0bits_t;
extern volatile __CM2CON0bits_t __at(CM2CON0_ADDR) CM2CON0bits;

// ----- CM2CON1 bits --------------------
typedef union {
  struct {
    unsigned char C2NCH0:1;
    unsigned char C2NCH1:1;
    unsigned char C2NCH2:1;
    unsigned char :1;
    unsigned char C2PCH0:1;
    unsigned char C2PCH1:1;
    unsigned char C2INTN:1;
    unsigned char C2INTP:1;
  };
} __CM2CON1bits_t;
extern volatile __CM2CON1bits_t __at(CM2CON1_ADDR) CM2CON1bits;

// ----- CMOUT bits --------------------
typedef union {
  struct {
    unsigned char MC1OUT:1;
    unsigned char MC2OUT:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __CMOUTbits_t;
extern volatile __CMOUTbits_t __at(CMOUT_ADDR) CMOUTbits;

// ----- CWG1CON0 bits --------------------
typedef union {
  struct {
    unsigned char G1CS0:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char G1POLA:1;
    unsigned char G1POLB:1;
    unsigned char G1OEA:1;
    unsigned char G1OEB:1;
    unsigned char G1EN:1;
  };
} __CWG1CON0bits_t;
extern volatile __CWG1CON0bits_t __at(CWG1CON0_ADDR) CWG1CON0bits;

// ----- CWG1CON1 bits --------------------
typedef union {
  struct {
    unsigned char G1IS0:1;
    unsigned char G1IS1:1;
    unsigned char G1IS2:1;
    unsigned char :1;
    unsigned char G1ASDLA0:1;
    unsigned char G1ASDLA1:1;
    unsigned char G1ASDLB0:1;
    unsigned char G1ASDLB1:1;
  };
} __CWG1CON1bits_t;
extern volatile __CWG1CON1bits_t __at(CWG1CON1_ADDR) CWG1CON1bits;

// ----- CWG1CON2 bits --------------------
typedef union {
  struct {
    unsigned char G1ASDSCLC2:1;
    unsigned char G1ASDSFLT:1;
    unsigned char G1ASDSC1:1;
    unsigned char G1ASDSC2:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char G1ARSEN:1;
    unsigned char G1ASE:1;
  };
} __CWG1CON2bits_t;
extern volatile __CWG1CON2bits_t __at(CWG1CON2_ADDR) CWG1CON2bits;

// ----- CWG1DBF bits --------------------
typedef union {
  struct {
    unsigned char CWG1DBF0:1;
    unsigned char CWG1DBF1:1;
    unsigned char CWG1DBF2:1;
    unsigned char CWG1DBF3:1;
    unsigned char CWG1DBF4:1;
    unsigned char CWG1DBF5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __CWG1DBFbits_t;
extern volatile __CWG1DBFbits_t __at(CWG1DBF_ADDR) CWG1DBFbits;

// ----- CWG1DBR bits --------------------
typedef union {
  struct {
    unsigned char CWG1DBR0:1;
    unsigned char CWG1DBR1:1;
    unsigned char CWG1DBR2:1;
    unsigned char CWG1DBR3:1;
    unsigned char CWG1DBR4:1;
    unsigned char CWG1DBR5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __CWG1DBRbits_t;
extern volatile __CWG1DBRbits_t __at(CWG1DBR_ADDR) CWG1DBRbits;

// ----- DACCON0 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char DACPSS:1;
    unsigned char :1;
    unsigned char DACOE2:1;
    unsigned char DACOE1:1;
    unsigned char :1;
    unsigned char DACEN:1;
  };
} __DACCON0bits_t;
extern volatile __DACCON0bits_t __at(DACCON0_ADDR) DACCON0bits;

// ----- DACCON1 bits --------------------
typedef union {
  struct {
    unsigned char DACR0:1;
    unsigned char DACR1:1;
    unsigned char DACR2:1;
    unsigned char DACR3:1;
    unsigned char DACR4:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __DACCON1bits_t;
extern volatile __DACCON1bits_t __at(DACCON1_ADDR) DACCON1bits;

// ----- DEVSEL bits --------------------
typedef union {
  struct {
    unsigned char DEVSEL0:1;
    unsigned char DEVSEL1:1;
    unsigned char DEVSEL2:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __DEVSELbits_t;
extern volatile __DEVSELbits_t __at(DEVSEL_ADDR) DEVSELbits;

// ----- FVRCON bits --------------------
typedef union {
  struct {
    unsigned char ADFVR0:1;
    unsigned char ADFVR1:1;
    unsigned char CDAFVR0:1;
    unsigned char CDAFVR1:1;
    unsigned char TSRNG:1;
    unsigned char TSEN:1;
    unsigned char FVRRDY:1;
    unsigned char FVREN:1;
  };
} __FVRCONbits_t;
extern volatile __FVRCONbits_t __at(FVRCON_ADDR) FVRCONbits;

// ----- ICDBK0CON bits --------------------
typedef union {
  struct {
    unsigned char BKHLT:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char BKEN:1;
  };
} __ICDBK0CONbits_t;
extern volatile __ICDBK0CONbits_t __at(ICDBK0CON_ADDR) ICDBK0CONbits;

// ----- ICDBK0H bits --------------------
typedef union {
  struct {
    unsigned char BKA8:1;
    unsigned char BKA9:1;
    unsigned char BKA10:1;
    unsigned char BKA11:1;
    unsigned char BKA12:1;
    unsigned char BKA13:1;
    unsigned char BKA14:1;
    unsigned char :1;
  };
} __ICDBK0Hbits_t;
extern volatile __ICDBK0Hbits_t __at(ICDBK0H_ADDR) ICDBK0Hbits;

// ----- ICDBK0L bits --------------------
typedef union {
  struct {
    unsigned char BKA0:1;
    unsigned char BKA1:1;
    unsigned char BKA2:1;
    unsigned char BKA3:1;
    unsigned char BKA4:1;
    unsigned char BKA5:1;
    unsigned char BKA6:1;
    unsigned char BKA7:1;
  };
} __ICDBK0Lbits_t;
extern volatile __ICDBK0Lbits_t __at(ICDBK0L_ADDR) ICDBK0Lbits;

// ----- ICDCON0 bits --------------------
typedef union {
  struct {
    unsigned char RSTVEC:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char DBGINEX:1;
    unsigned char :1;
    unsigned char SSTEP:1;
    unsigned char FREEZ:1;
    unsigned char INBUG:1;
  };
} __ICDCON0bits_t;
extern volatile __ICDCON0bits_t __at(ICDCON0_ADDR) ICDCON0bits;

// ----- ICDINSTH bits --------------------
typedef union {
  struct {
    unsigned char DBGIN8:1;
    unsigned char DBGIN9:1;
    unsigned char DBGIN10:1;
    unsigned char DBGIN11:1;
    unsigned char DBGIN12:1;
    unsigned char DBGIN13:1;
    unsigned char :1;
    unsigned char :1;
  };
} __ICDINSTHbits_t;
extern volatile __ICDINSTHbits_t __at(ICDINSTH_ADDR) ICDINSTHbits;

// ----- ICDINSTL bits --------------------
typedef union {
  struct {
    unsigned char DBGIN0:1;
    unsigned char DBGIN1:1;
    unsigned char DBGIN2:1;
    unsigned char DBGIN3:1;
    unsigned char DBGIN4:1;
    unsigned char DBGIN5:1;
    unsigned char DBGIN6:1;
    unsigned char DBGIN7:1;
  };
} __ICDINSTLbits_t;
extern volatile __ICDINSTLbits_t __at(ICDINSTL_ADDR) ICDINSTLbits;

// ----- ICDIO bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char TRIS_ICDCLK:1;
    unsigned char TRIS_ICDDAT:1;
    unsigned char LAT_ICDCLK:1;
    unsigned char LAT_ICDDAT:1;
    unsigned char PORT_ICDCLK:1;
    unsigned char PORT_ICDDAT:1;
  };
} __ICDIObits_t;
extern volatile __ICDIObits_t __at(ICDIO_ADDR) ICDIObits;

// ----- ICDSTAT bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char USRHLTF:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char TRP0HLTF:1;
    unsigned char TRP1HLTF:1;
  };
} __ICDSTATbits_t;
extern volatile __ICDSTATbits_t __at(ICDSTAT_ADDR) ICDSTATbits;

// ----- INTCON bits --------------------
typedef union {
  struct {
    unsigned char IOCIF:1;
    unsigned char INTF:1;
    unsigned char TMR0IF:1;
    unsigned char IOCIE:1;
    unsigned char INTE:1;
    unsigned char TMR0IE:1;
    unsigned char PEIE:1;
    unsigned char GIE:1;
  };
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char T0IF:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char T0IE:1;
    unsigned char :1;
    unsigned char :1;
  };
} __INTCONbits_t;
extern volatile __INTCONbits_t __at(INTCON_ADDR) INTCONbits;

// ----- IOCAF bits --------------------
typedef union {
  struct {
    unsigned char IOCAF0:1;
    unsigned char IOCAF1:1;
    unsigned char IOCAF2:1;
    unsigned char IOCAF3:1;
    unsigned char IOCAF4:1;
    unsigned char IOCAF5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __IOCAFbits_t;
extern volatile __IOCAFbits_t __at(IOCAF_ADDR) IOCAFbits;

// ----- IOCAN bits --------------------
typedef union {
  struct {
    unsigned char IOCAN0:1;
    unsigned char IOCAN1:1;
    unsigned char IOCAN2:1;
    unsigned char IOCAN3:1;
    unsigned char IOCAN4:1;
    unsigned char IOCAN5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __IOCANbits_t;
extern volatile __IOCANbits_t __at(IOCAN_ADDR) IOCANbits;

// ----- IOCAP bits --------------------
typedef union {
  struct {
    unsigned char IOCAP0:1;
    unsigned char IOCAP1:1;
    unsigned char IOCAP2:1;
    unsigned char IOCAP3:1;
    unsigned char IOCAP4:1;
    unsigned char IOCAP5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __IOCAPbits_t;
extern volatile __IOCAPbits_t __at(IOCAP_ADDR) IOCAPbits;

// ----- IOCBF bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char IOCBF4:1;
    unsigned char IOCBF5:1;
    unsigned char IOCBF6:1;
    unsigned char IOCBF7:1;
  };
} __IOCBFbits_t;
extern volatile __IOCBFbits_t __at(IOCBF_ADDR) IOCBFbits;

// ----- IOCBN bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char IOCBN4:1;
    unsigned char IOCBN5:1;
    unsigned char IOCBN6:1;
    unsigned char IOCBN7:1;
  };
} __IOCBNbits_t;
extern volatile __IOCBNbits_t __at(IOCBN_ADDR) IOCBNbits;

// ----- IOCBP bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char IOCBP4:1;
    unsigned char IOCBP5:1;
    unsigned char IOCBP6:1;
    unsigned char IOCBP7:1;
  };
} __IOCBPbits_t;
extern volatile __IOCBPbits_t __at(IOCBP_ADDR) IOCBPbits;

// ----- LATA bits --------------------
typedef union {
  struct {
    unsigned char LATA0:1;
    unsigned char LATA1:1;
    unsigned char LATA2:1;
    unsigned char :1;
    unsigned char LATA4:1;
    unsigned char LATA5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __LATAbits_t;
extern volatile __LATAbits_t __at(LATA_ADDR) LATAbits;

// ----- LATB bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char LATB4:1;
    unsigned char LATB5:1;
    unsigned char LATB6:1;
    unsigned char LATB7:1;
  };
} __LATBbits_t;
extern volatile __LATBbits_t __at(LATB_ADDR) LATBbits;

// ----- LATC bits --------------------
typedef union {
  struct {
    unsigned char LATC0:1;
    unsigned char LATC1:1;
    unsigned char LATC2:1;
    unsigned char LATC3:1;
    unsigned char LATC4:1;
    unsigned char LATC5:1;
    unsigned char LATC6:1;
    unsigned char LATC7:1;
  };
} __LATCbits_t;
extern volatile __LATCbits_t __at(LATC_ADDR) LATCbits;

// ----- NCO1ACCH bits --------------------
typedef union {
  struct {
    unsigned char NCO1ACC8:1;
    unsigned char NCO1ACC9:1;
    unsigned char NCO1ACC10:1;
    unsigned char NCO1ACC11:1;
    unsigned char NCO1ACC12:1;
    unsigned char NCO1ACC13:1;
    unsigned char NCO1ACC14:1;
    unsigned char NCO1ACC15:1;
  };
} __NCO1ACCHbits_t;
extern volatile __NCO1ACCHbits_t __at(NCO1ACCH_ADDR) NCO1ACCHbits;

// ----- NCO1ACCL bits --------------------
typedef union {
  struct {
    unsigned char NCO1ACC0:1;
    unsigned char NCO1ACC1:1;
    unsigned char NCO1ACC2:1;
    unsigned char NCO1ACC3:1;
    unsigned char NCO1ACC4:1;
    unsigned char NCO1ACC5:1;
    unsigned char NCO1ACC6:1;
    unsigned char NCO1ACC7:1;
  };
} __NCO1ACCLbits_t;
extern volatile __NCO1ACCLbits_t __at(NCO1ACCL_ADDR) NCO1ACCLbits;

// ----- NCO1ACCU bits --------------------
typedef union {
  struct {
    unsigned char NCO1ACC16:1;
    unsigned char NCO1ACC17:1;
    unsigned char NCO1ACC18:1;
    unsigned char NCO1ACC19:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __NCO1ACCUbits_t;
extern volatile __NCO1ACCUbits_t __at(NCO1ACCU_ADDR) NCO1ACCUbits;

// ----- NCO1CLK bits --------------------
typedef union {
  struct {
    unsigned char N1CKS0:1;
    unsigned char N1CKS1:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char N1PWS0:1;
    unsigned char N1PWS1:1;
    unsigned char N1PWS2:1;
  };
} __NCO1CLKbits_t;
extern volatile __NCO1CLKbits_t __at(NCO1CLK_ADDR) NCO1CLKbits;

// ----- NCO1CON bits --------------------
typedef union {
  struct {
    unsigned char N1PFM:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char N1POL:1;
    unsigned char N1OUT:1;
    unsigned char N1OE:1;
    unsigned char N1EN:1;
  };
} __NCO1CONbits_t;
extern volatile __NCO1CONbits_t __at(NCO1CON_ADDR) NCO1CONbits;

// ----- NCO1INCH bits --------------------
typedef union {
  struct {
    unsigned char NCO1INC8:1;
    unsigned char NCO1INC9:1;
    unsigned char NCO1INC10:1;
    unsigned char NCO1INC11:1;
    unsigned char NCO1INC12:1;
    unsigned char NCO1INC13:1;
    unsigned char NCO1INC14:1;
    unsigned char NCO1INC15:1;
  };
} __NCO1INCHbits_t;
extern volatile __NCO1INCHbits_t __at(NCO1INCH_ADDR) NCO1INCHbits;

// ----- NCO1INCL bits --------------------
typedef union {
  struct {
    unsigned char NCO1INC0:1;
    unsigned char NCO1INC1:1;
    unsigned char NCO1INC2:1;
    unsigned char NCO1INC3:1;
    unsigned char NCO1INC4:1;
    unsigned char NCO1INC5:1;
    unsigned char NCO1INC6:1;
    unsigned char NCO1INC7:1;
  };
} __NCO1INCLbits_t;
extern volatile __NCO1INCLbits_t __at(NCO1INCL_ADDR) NCO1INCLbits;

// ----- OPTION_REG bits --------------------
typedef union {
  struct {
    unsigned char PS0:1;
    unsigned char PS1:1;
    unsigned char PS2:1;
    unsigned char PSA:1;
    unsigned char TMR0SE:1;
    unsigned char TMR0CS:1;
    unsigned char INTEDG:1;
    unsigned char NOT_WPUEN:1;
  };
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char T0SE:1;
    unsigned char T0CS:1;
    unsigned char :1;
    unsigned char :1;
  };
} __OPTION_REGbits_t;
extern volatile __OPTION_REGbits_t __at(OPTION_REG_ADDR) OPTION_REGbits;

// ----- OSCCON bits --------------------
typedef union {
  struct {
    unsigned char SCS0:1;
    unsigned char SCS1:1;
    unsigned char :1;
    unsigned char IRCF0:1;
    unsigned char IRCF1:1;
    unsigned char IRCF2:1;
    unsigned char IRCF3:1;
    unsigned char :1;
  };
} __OSCCONbits_t;
extern volatile __OSCCONbits_t __at(OSCCON_ADDR) OSCCONbits;

// ----- OSCSTAT bits --------------------
typedef union {
  struct {
    unsigned char HFIOFS:1;
    unsigned char LFIOFR:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char HFIOFR:1;
    unsigned char OSTS:1;
    unsigned char :1;
    unsigned char SOSCR:1;
  };
} __OSCSTATbits_t;
extern volatile __OSCSTATbits_t __at(OSCSTAT_ADDR) OSCSTATbits;

// ----- PCON bits --------------------
typedef union {
  struct {
    unsigned char NOT_BOR:1;
    unsigned char NOT_POR:1;
    unsigned char NOT_RI:1;
    unsigned char NOT_RMCLR:1;
    unsigned char NOT_RWDT:1;
    unsigned char :1;
    unsigned char STKUNF:1;
    unsigned char STKOVF:1;
  };
} __PCONbits_t;
extern volatile __PCONbits_t __at(PCON_ADDR) PCONbits;

// ----- PIE1 bits --------------------
typedef union {
  struct {
    unsigned char TMR1IE:1;
    unsigned char TMR2IE:1;
    unsigned char :1;
    unsigned char SSP1IE:1;
    unsigned char TXIE:1;
    unsigned char RCIE:1;
    unsigned char ADIE:1;
    unsigned char TMR1GIE:1;
  };
} __PIE1bits_t;
extern volatile __PIE1bits_t __at(PIE1_ADDR) PIE1bits;

// ----- PIE2 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char NCO1IE:1;
    unsigned char BCL1IE:1;
    unsigned char :1;
    unsigned char C1IE:1;
    unsigned char C2IE:1;
    unsigned char OSFIE:1;
  };
} __PIE2bits_t;
extern volatile __PIE2bits_t __at(PIE2_ADDR) PIE2bits;

// ----- PIE3 bits --------------------
typedef union {
  struct {
    unsigned char CLC1IE:1;
    unsigned char CLC2IE:1;
    unsigned char CLC3IE:1;
    unsigned char CLC4IE:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __PIE3bits_t;
extern volatile __PIE3bits_t __at(PIE3_ADDR) PIE3bits;

// ----- PIR1 bits --------------------
typedef union {
  struct {
    unsigned char TMR1IF:1;
    unsigned char TMR2IF:1;
    unsigned char :1;
    unsigned char SSP1IF:1;
    unsigned char TXIF:1;
    unsigned char RCIF:1;
    unsigned char ADIF:1;
    unsigned char TMR1GIF:1;
  };
} __PIR1bits_t;
extern volatile __PIR1bits_t __at(PIR1_ADDR) PIR1bits;

// ----- PIR2 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char NCO1IF:1;
    unsigned char BCL1IF:1;
    unsigned char :1;
    unsigned char C1IF:1;
    unsigned char C2IF:1;
    unsigned char OSFIF:1;
  };
} __PIR2bits_t;
extern volatile __PIR2bits_t __at(PIR2_ADDR) PIR2bits;

// ----- PIR3 bits --------------------
typedef union {
  struct {
    unsigned char CLC1IF:1;
    unsigned char CLC2IF:1;
    unsigned char CLC3IF:1;
    unsigned char CLC4IF:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __PIR3bits_t;
extern volatile __PIR3bits_t __at(PIR3_ADDR) PIR3bits;

// ----- PMCON1 bits --------------------
typedef union {
  struct {
    unsigned char RD:1;
    unsigned char WR:1;
    unsigned char WREN:1;
    unsigned char WRERR:1;
    unsigned char FREE:1;
    unsigned char LWLO:1;
    unsigned char CFGS:1;
    unsigned char EEPGD:1;
  };
} __PMCON1bits_t;
extern volatile __PMCON1bits_t __at(PMCON1_ADDR) PMCON1bits;

// ----- PORTA bits --------------------
typedef union {
  struct {
    unsigned char RA0:1;
    unsigned char RA1:1;
    unsigned char RA2:1;
    unsigned char RA3:1;
    unsigned char RA4:1;
    unsigned char RA5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __PORTAbits_t;
extern volatile __PORTAbits_t __at(PORTA_ADDR) PORTAbits;

// ----- PORTB bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char RB4:1;
    unsigned char RB5:1;
    unsigned char RB6:1;
    unsigned char RB7:1;
  };
} __PORTBbits_t;
extern volatile __PORTBbits_t __at(PORTB_ADDR) PORTBbits;

// ----- PORTC bits --------------------
typedef union {
  struct {
    unsigned char RC0:1;
    unsigned char RC1:1;
    unsigned char RC2:1;
    unsigned char RC3:1;
    unsigned char RC4:1;
    unsigned char RC5:1;
    unsigned char RC6:1;
    unsigned char RC7:1;
  };
} __PORTCbits_t;
extern volatile __PORTCbits_t __at(PORTC_ADDR) PORTCbits;

// ----- PWM1CON bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM1POL:1;
    unsigned char PWM1OUT:1;
    unsigned char PWM1OE:1;
    unsigned char PWM1EN:1;
  };
} __PWM1CONbits_t;
extern volatile __PWM1CONbits_t __at(PWM1CON_ADDR) PWM1CONbits;

// ----- PWM1CON0 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM1POL:1;
    unsigned char PWM1OUT:1;
    unsigned char PWM1OE:1;
    unsigned char PWM1EN:1;
  };
} __PWM1CON0bits_t;
extern volatile __PWM1CON0bits_t __at(PWM1CON0_ADDR) PWM1CON0bits;

// ----- PWM1DCH bits --------------------
typedef union {
  struct {
    unsigned char PWM1DCH0:1;
    unsigned char PWM1DCH1:1;
    unsigned char PWM1DCH2:1;
    unsigned char PWM1DCH3:1;
    unsigned char PWM1DCH4:1;
    unsigned char PWM1DCH5:1;
    unsigned char PWM1DCH6:1;
    unsigned char PWM1DCH7:1;
  };
} __PWM1DCHbits_t;
extern volatile __PWM1DCHbits_t __at(PWM1DCH_ADDR) PWM1DCHbits;

// ----- PWM1DCL bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM1DCL0:1;
    unsigned char PWM1DCL1:1;
  };
} __PWM1DCLbits_t;
extern volatile __PWM1DCLbits_t __at(PWM1DCL_ADDR) PWM1DCLbits;

// ----- PWM2CON bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM2POL:1;
    unsigned char PWM2OUT:1;
    unsigned char PWM2OE:1;
    unsigned char PWM2EN:1;
  };
} __PWM2CONbits_t;
extern volatile __PWM2CONbits_t __at(PWM2CON_ADDR) PWM2CONbits;

// ----- PWM2CON0 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM2POL:1;
    unsigned char PWM2OUT:1;
    unsigned char PWM2OE:1;
    unsigned char PWM2EN:1;
  };
} __PWM2CON0bits_t;
extern volatile __PWM2CON0bits_t __at(PWM2CON0_ADDR) PWM2CON0bits;

// ----- PWM2DCH bits --------------------
typedef union {
  struct {
    unsigned char PWM2DCH0:1;
    unsigned char PWM2DCH1:1;
    unsigned char PWM2DCH2:1;
    unsigned char PWM2DCH3:1;
    unsigned char PWM2DCH4:1;
    unsigned char PWM2DCH5:1;
    unsigned char PWM2DCH6:1;
    unsigned char PWM2DCH7:1;
  };
} __PWM2DCHbits_t;
extern volatile __PWM2DCHbits_t __at(PWM2DCH_ADDR) PWM2DCHbits;

// ----- PWM2DCL bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM2DCL0:1;
    unsigned char PWM2DCL1:1;
  };
} __PWM2DCLbits_t;
extern volatile __PWM2DCLbits_t __at(PWM2DCL_ADDR) PWM2DCLbits;

// ----- PWM3CON bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM3POL:1;
    unsigned char PWM3OUT:1;
    unsigned char PWM3OE:1;
    unsigned char PWM3EN:1;
  };
} __PWM3CONbits_t;
extern volatile __PWM3CONbits_t __at(PWM3CON_ADDR) PWM3CONbits;

// ----- PWM3CON0 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM3POL:1;
    unsigned char PWM3OUT:1;
    unsigned char PWM3OE:1;
    unsigned char PWM3EN:1;
  };
} __PWM3CON0bits_t;
extern volatile __PWM3CON0bits_t __at(PWM3CON0_ADDR) PWM3CON0bits;

// ----- PWM3DCH bits --------------------
typedef union {
  struct {
    unsigned char PWM3DCH0:1;
    unsigned char PWM3DCH1:1;
    unsigned char PWM3DCH2:1;
    unsigned char PWM3DCH3:1;
    unsigned char PWM3DCH4:1;
    unsigned char PWM3DCH5:1;
    unsigned char PWM3DCH6:1;
    unsigned char PWM3DCH7:1;
  };
} __PWM3DCHbits_t;
extern volatile __PWM3DCHbits_t __at(PWM3DCH_ADDR) PWM3DCHbits;

// ----- PWM3DCL bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM3DCL0:1;
    unsigned char PWM3DCL1:1;
  };
} __PWM3DCLbits_t;
extern volatile __PWM3DCLbits_t __at(PWM3DCL_ADDR) PWM3DCLbits;

// ----- PWM4CON bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM4POL:1;
    unsigned char PWM4OUT:1;
    unsigned char PWM4OE:1;
    unsigned char PWM4EN:1;
  };
} __PWM4CONbits_t;
extern volatile __PWM4CONbits_t __at(PWM4CON_ADDR) PWM4CONbits;

// ----- PWM4CON0 bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM4POL:1;
    unsigned char PWM4OUT:1;
    unsigned char PWM4OE:1;
    unsigned char PWM4EN:1;
  };
} __PWM4CON0bits_t;
extern volatile __PWM4CON0bits_t __at(PWM4CON0_ADDR) PWM4CON0bits;

// ----- PWM4DCH bits --------------------
typedef union {
  struct {
    unsigned char PWM4DCH0:1;
    unsigned char PWM4DCH1:1;
    unsigned char PWM4DCH2:1;
    unsigned char PWM4DCH3:1;
    unsigned char PWM4DCH4:1;
    unsigned char PWM4DCH5:1;
    unsigned char PWM4DCH6:1;
    unsigned char PWM4DCH7:1;
  };
} __PWM4DCHbits_t;
extern volatile __PWM4DCHbits_t __at(PWM4DCH_ADDR) PWM4DCHbits;

// ----- PWM4DCL bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char PWM4DCL0:1;
    unsigned char PWM4DCL1:1;
  };
} __PWM4DCLbits_t;
extern volatile __PWM4DCLbits_t __at(PWM4DCL_ADDR) PWM4DCLbits;

// ----- RCSTA bits --------------------
typedef union {
  struct {
    unsigned char RX9D:1;
    unsigned char OERR:1;
    unsigned char FERR:1;
    unsigned char ADDEN:1;
    unsigned char CREN:1;
    unsigned char SREN:1;
    unsigned char RX9:1;
    unsigned char SPEN:1;
  };
} __RCSTAbits_t;
extern volatile __RCSTAbits_t __at(RCSTA_ADDR) RCSTAbits;

// ----- SSP1CON1 bits --------------------
typedef union {
  struct {
    unsigned char SSPM0:1;
    unsigned char SSPM1:1;
    unsigned char SSPM2:1;
    unsigned char SSPM3:1;
    unsigned char CKP:1;
    unsigned char SSPEN:1;
    unsigned char SSPOV:1;
    unsigned char WCOL:1;
  };
} __SSP1CON1bits_t;
extern volatile __SSP1CON1bits_t __at(SSP1CON1_ADDR) SSP1CON1bits;

// ----- SSP1CON2 bits --------------------
typedef union {
  struct {
    unsigned char SEN:1;
    unsigned char RSEN:1;
    unsigned char PEN:1;
    unsigned char RCEN:1;
    unsigned char ACKEN:1;
    unsigned char ACKDT:1;
    unsigned char ACKSTAT:1;
    unsigned char GCEN:1;
  };
} __SSP1CON2bits_t;
extern volatile __SSP1CON2bits_t __at(SSP1CON2_ADDR) SSP1CON2bits;

// ----- SSP1CON3 bits --------------------
typedef union {
  struct {
    unsigned char DHEN:1;
    unsigned char AHEN:1;
    unsigned char SBCDE:1;
    unsigned char SDAHT:1;
    unsigned char BOEN:1;
    unsigned char SCIE:1;
    unsigned char PCIE:1;
    unsigned char ACKTIM:1;
  };
} __SSP1CON3bits_t;
extern volatile __SSP1CON3bits_t __at(SSP1CON3_ADDR) SSP1CON3bits;

// ----- SSP1STAT bits --------------------
typedef union {
  struct {
    unsigned char BF:1;
    unsigned char UA:1;
    unsigned char R_NOT_W:1;
    unsigned char S:1;
    unsigned char P:1;
    unsigned char D_NOT_A:1;
    unsigned char CKE:1;
    unsigned char SMP:1;
  };
} __SSP1STATbits_t;
extern volatile __SSP1STATbits_t __at(SSP1STAT_ADDR) SSP1STATbits;

// ----- SSPCON bits --------------------
typedef union {
  struct {
    unsigned char SSPM0:1;
    unsigned char SSPM1:1;
    unsigned char SSPM2:1;
    unsigned char SSPM3:1;
    unsigned char CKP:1;
    unsigned char SSPEN:1;
    unsigned char SSPOV:1;
    unsigned char WCOL:1;
  };
} __SSPCONbits_t;
extern volatile __SSPCONbits_t __at(SSPCON_ADDR) SSPCONbits;

// ----- SSPCON1 bits --------------------
typedef union {
  struct {
    unsigned char SSPM0:1;
    unsigned char SSPM1:1;
    unsigned char SSPM2:1;
    unsigned char SSPM3:1;
    unsigned char CKP:1;
    unsigned char SSPEN:1;
    unsigned char SSPOV:1;
    unsigned char WCOL:1;
  };
} __SSPCON1bits_t;
extern volatile __SSPCON1bits_t __at(SSPCON1_ADDR) SSPCON1bits;

// ----- SSPCON2 bits --------------------
typedef union {
  struct {
    unsigned char SEN:1;
    unsigned char RSEN:1;
    unsigned char PEN:1;
    unsigned char RCEN:1;
    unsigned char ACKEN:1;
    unsigned char ACKDT:1;
    unsigned char ACKSTAT:1;
    unsigned char GCEN:1;
  };
} __SSPCON2bits_t;
extern volatile __SSPCON2bits_t __at(SSPCON2_ADDR) SSPCON2bits;

// ----- SSPCON3 bits --------------------
typedef union {
  struct {
    unsigned char DHEN:1;
    unsigned char AHEN:1;
    unsigned char SBCDE:1;
    unsigned char SDAHT:1;
    unsigned char BOEN:1;
    unsigned char SCIE:1;
    unsigned char PCIE:1;
    unsigned char ACKTIM:1;
  };
} __SSPCON3bits_t;
extern volatile __SSPCON3bits_t __at(SSPCON3_ADDR) SSPCON3bits;

// ----- SSPSTAT bits --------------------
typedef union {
  struct {
    unsigned char BF:1;
    unsigned char UA:1;
    unsigned char R_NOT_W:1;
    unsigned char S:1;
    unsigned char P:1;
    unsigned char D_NOT_A:1;
    unsigned char CKE:1;
    unsigned char SMP:1;
  };
} __SSPSTATbits_t;
extern volatile __SSPSTATbits_t __at(SSPSTAT_ADDR) SSPSTATbits;

// ----- STATUS bits --------------------
typedef union {
  struct {
    unsigned char C:1;
    unsigned char DC:1;
    unsigned char Z:1;
    unsigned char NOT_PD:1;
    unsigned char NOT_TO:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __STATUSbits_t;
extern volatile __STATUSbits_t __at(STATUS_ADDR) STATUSbits;

// ----- STATUS_SHAD bits --------------------
typedef union {
  struct {
    unsigned char C_SHAD:1;
    unsigned char DC_SHAD:1;
    unsigned char Z_SHAD:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __STATUS_SHADbits_t;
extern volatile __STATUS_SHADbits_t __at(STATUS_SHAD_ADDR) STATUS_SHADbits;

// ----- T1CON bits --------------------
typedef union {
  struct {
    unsigned char TMR1ON:1;
    unsigned char :1;
    unsigned char NOT_T1SYNC:1;
    unsigned char T1OSCEN:1;
    unsigned char T1CKPS0:1;
    unsigned char T1CKPS1:1;
    unsigned char TMR1CS0:1;
    unsigned char TMR1CS1:1;
  };
} __T1CONbits_t;
extern volatile __T1CONbits_t __at(T1CON_ADDR) T1CONbits;

// ----- T1GCON bits --------------------
typedef union {
  struct {
    unsigned char T1GSS0:1;
    unsigned char T1GSS1:1;
    unsigned char T1GVAL:1;
    unsigned char T1GGO_NOT_DONE:1;
    unsigned char T1GSPM:1;
    unsigned char T1GTM:1;
    unsigned char T1GPOL:1;
    unsigned char TMR1GE:1;
  };
} __T1GCONbits_t;
extern volatile __T1GCONbits_t __at(T1GCON_ADDR) T1GCONbits;

// ----- T2CON bits --------------------
typedef union {
  struct {
    unsigned char T2CKPS0:1;
    unsigned char T2CKPS1:1;
    unsigned char TMR2ON:1;
    unsigned char T2OUTPS0:1;
    unsigned char T2OUTPS1:1;
    unsigned char T2OUTPS2:1;
    unsigned char T2OUTPS3:1;
    unsigned char :1;
  };
} __T2CONbits_t;
extern volatile __T2CONbits_t __at(T2CON_ADDR) T2CONbits;

// ----- TRISA bits --------------------
typedef union {
  struct {
    unsigned char TRISA0:1;
    unsigned char TRISA1:1;
    unsigned char TRISA2:1;
    unsigned char TRISA3:1;
    unsigned char TRISA4:1;
    unsigned char TRISA5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __TRISAbits_t;
extern volatile __TRISAbits_t __at(TRISA_ADDR) TRISAbits;

// ----- TRISB bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char TRISB4:1;
    unsigned char TRISB5:1;
    unsigned char TRISB6:1;
    unsigned char TRISB7:1;
  };
} __TRISBbits_t;
extern volatile __TRISBbits_t __at(TRISB_ADDR) TRISBbits;

// ----- TRISC bits --------------------
typedef union {
  struct {
    unsigned char TRISC0:1;
    unsigned char TRISC1:1;
    unsigned char TRISC2:1;
    unsigned char TRISC3:1;
    unsigned char TRISC4:1;
    unsigned char TRISC5:1;
    unsigned char TRISC6:1;
    unsigned char TRISC7:1;
  };
} __TRISCbits_t;
extern volatile __TRISCbits_t __at(TRISC_ADDR) TRISCbits;

// ----- TXSTA bits --------------------
typedef union {
  struct {
    unsigned char TX9D:1;
    unsigned char TRMT:1;
    unsigned char BRGH:1;
    unsigned char SENDB:1;
    unsigned char SYNC:1;
    unsigned char TXEN:1;
    unsigned char TX9:1;
    unsigned char CSRC:1;
  };
} __TXSTAbits_t;
extern volatile __TXSTAbits_t __at(TXSTA_ADDR) TXSTAbits;

// ----- VREGCON bits --------------------
typedef union {
  struct {
    unsigned char Reserved:1;
    unsigned char VREGPM:1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
  };
} __VREGCONbits_t;
extern volatile __VREGCONbits_t __at(VREGCON_ADDR) VREGCONbits;

// ----- WDTCON bits --------------------
typedef union {
  struct {
    unsigned char SWDTEN:1;
    unsigned char WDTPS0:1;
    unsigned char WDTPS1:1;
    unsigned char WDTPS2:1;
    unsigned char WDTPS3:1;
    unsigned char WDTPS4:1;
    unsigned char :1;
    unsigned char :1;
  };
} __WDTCONbits_t;
extern volatile __WDTCONbits_t __at(WDTCON_ADDR) WDTCONbits;

// ----- WPUA bits --------------------
typedef union {
  struct {
    unsigned char WPUA0:1;
    unsigned char WPUA1:1;
    unsigned char WPUA2:1;
    unsigned char WPUA3:1;
    unsigned char WPUA4:1;
    unsigned char WPUA5:1;
    unsigned char :1;
    unsigned char :1;
  };
} __WPUAbits_t;
extern volatile __WPUAbits_t __at(WPUA_ADDR) WPUAbits;

// ----- WPUB bits --------------------
typedef union {
  struct {
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char :1;
    unsigned char WPUB4:1;
    unsigned char WPUB5:1;
    unsigned char WPUB6:1;
    unsigned char WPUB7:1;
  };
} __WPUBbits_t;
extern volatile __WPUBbits_t __at(WPUB_ADDR) WPUBbits;


#ifndef NO_BIT_DEFINES

#define ADON                 ADCON0bits.ADON                /* bit 0 */
#define ADGO                 ADCON0bits.ADGO                /* bit 1 */
#define GO                   ADCON0bits.GO                  /* bit 1 */
#define GO_NOT_DONE          ADCON0bits.GO_NOT_DONE         /* bit 1 */
#define CHS0                 ADCON0bits.CHS0                /* bit 2 */
#define CHS1                 ADCON0bits.CHS1                /* bit 3 */
#define CHS2                 ADCON0bits.CHS2                /* bit 4 */
#define CHS3                 ADCON0bits.CHS3                /* bit 5 */
#define CHS4                 ADCON0bits.CHS4                /* bit 6 */

#define ADPREF0              ADCON1bits.ADPREF0             /* bit 0 */
#define ADPREF1              ADCON1bits.ADPREF1             /* bit 1 */
#define ADCS0                ADCON1bits.ADCS0               /* bit 4 */
#define ADCS1                ADCON1bits.ADCS1               /* bit 5 */
#define ADCS2                ADCON1bits.ADCS2               /* bit 6 */
#define ADFM                 ADCON1bits.ADFM                /* bit 7 */

#define TRIGSEL0             ADCON2bits.TRIGSEL0            /* bit 4 */
#define TRIGSEL1             ADCON2bits.TRIGSEL1            /* bit 5 */
#define TRIGSEL2             ADCON2bits.TRIGSEL2            /* bit 6 */
#define TRIGSEL3             ADCON2bits.TRIGSEL3            /* bit 7 */

#define ANSA0                ANSELAbits.ANSA0               /* bit 0 */
#define ANSA1                ANSELAbits.ANSA1               /* bit 1 */
#define ANSA2                ANSELAbits.ANSA2               /* bit 2 */
#define ANSA4                ANSELAbits.ANSA4               /* bit 4 */

#define ANSB4                ANSELBbits.ANSB4               /* bit 4 */
#define ANSB5                ANSELBbits.ANSB5               /* bit 5 */

#define ANSC0                ANSELCbits.ANSC0               /* bit 0 */
#define ANSC1                ANSELCbits.ANSC1               /* bit 1 */
#define ANSC2                ANSELCbits.ANSC2               /* bit 2 */
#define ANSC3                ANSELCbits.ANSC3               /* bit 3 */
#define ANSC6                ANSELCbits.ANSC6               /* bit 6 */
#define ANSC7                ANSELCbits.ANSC7               /* bit 7 */

#define NCO1SEL              APFCONbits.NCO1SEL             /* bit 0 */
#define NCOSEL               APFCONbits.NCOSEL              /* bit 0 */
#define CLC1SEL              APFCONbits.CLC1SEL             /* bit 1 */
#define T1GSEL               APFCONbits.T1GSEL              /* bit 3 */
#define SSSEL                APFCONbits.SSSEL               /* bit 4 */

#define ABDEN                BAUDCONbits.ABDEN              /* bit 0 */
#define WUE                  BAUDCONbits.WUE                /* bit 1 */
#define BRG16                BAUDCONbits.BRG16              /* bit 3 */
#define SCKP                 BAUDCONbits.SCKP               /* bit 4 */
#define RCIDL                BAUDCONbits.RCIDL              /* bit 6 */
#define ABDOVF               BAUDCONbits.ABDOVF             /* bit 7 */

#define BORRDY               BORCONbits.BORRDY              /* bit 0 */
#define BORFS                BORCONbits.BORFS               /* bit 6 */
#define SBOREN               BORCONbits.SBOREN              /* bit 7 */

#define BSR0                 BSRbits.BSR0                   /* bit 0 */
#define BSR1                 BSRbits.BSR1                   /* bit 1 */
#define BSR2                 BSRbits.BSR2                   /* bit 2 */
#define BSR3                 BSRbits.BSR3                   /* bit 3 */
#define BSR4                 BSRbits.BSR4                   /* bit 4 */

#define LC1MODE0             CLC1CONbits.LC1MODE0           /* bit 0 */
#define LCMODE0              CLC1CONbits.LCMODE0            /* bit 0, shadows bit in CLC2CONbits, CLC3CONbits, CLC4CONbits */
#define LC1MODE1             CLC1CONbits.LC1MODE1           /* bit 1 */
#define LCMODE1              CLC1CONbits.LCMODE1            /* bit 1, shadows bit in CLC2CONbits, CLC3CONbits, CLC4CONbits */
#define LC1MODE2             CLC1CONbits.LC1MODE2           /* bit 2 */
#define LCMODE2              CLC1CONbits.LCMODE2            /* bit 2, shadows bit in CLC2CONbits, CLC3CONbits, CLC4CONbits */
#define LC1INTN              CLC1CONbits.LC1INTN            /* bit 3 */
#define LCINTN               CLC1CONbits.LCINTN             /* bit 3, shadows bit in CLC2CONbits, CLC3CONbits, CLC4CONbits */
#define LC1INTP              CLC1CONbits.LC1INTP            /* bit 4 */
#define LCINTP               CLC1CONbits.LCINTP             /* bit 4, shadows bit in CLC2CONbits, CLC3CONbits, CLC4CONbits */
#define LC1OUT               CLC1CONbits.LC1OUT             /* bit 5 */
#define LCOUT                CLC1CONbits.LCOUT              /* bit 5, shadows bit in CLC2CONbits, CLC3CONbits, CLC4CONbits */
#define LC1OE                CLC1CONbits.LC1OE              /* bit 6 */
#define LCOE                 CLC1CONbits.LCOE               /* bit 6, shadows bit in CLC2CONbits, CLC3CONbits, CLC4CONbits */
#define LC1EN                CLC1CONbits.LC1EN              /* bit 7 */
#define LCEN                 CLC1CONbits.LCEN               /* bit 7, shadows bit in CLC2CONbits, CLC3CONbits, CLC4CONbits */

#define D1N                  CLC1GLS0bits.D1N               /* bit 0, shadows bit in CLC1GLS1bits, CLC1GLS2bits, CLC2GLS0bits, CLC2GLS1bits, CLC2GLS2bits, CLC3GLS0bits, CLC3GLS1bits, CLC3GLS2bits, CLC4GLS0bits, CLC4GLS1bits, CLC4GLS2bits */
#define LC1G1D1N             CLC1GLS0bits.LC1G1D1N          /* bit 0 */
#define D1T                  CLC1GLS0bits.D1T               /* bit 1, shadows bit in CLC1GLS1bits, CLC1GLS2bits, CLC2GLS0bits, CLC2GLS1bits, CLC2GLS2bits, CLC3GLS0bits, CLC3GLS1bits, CLC3GLS2bits, CLC4GLS0bits, CLC4GLS1bits, CLC4GLS2bits */
#define LC1G1D1T             CLC1GLS0bits.LC1G1D1T          /* bit 1 */
#define D2N                  CLC1GLS0bits.D2N               /* bit 2, shadows bit in CLC1GLS1bits, CLC1GLS2bits, CLC2GLS0bits, CLC2GLS1bits, CLC2GLS2bits, CLC3GLS0bits, CLC3GLS1bits, CLC3GLS2bits, CLC4GLS0bits, CLC4GLS1bits, CLC4GLS2bits */
#define LC1G1D2N             CLC1GLS0bits.LC1G1D2N          /* bit 2 */
#define D2T                  CLC1GLS0bits.D2T               /* bit 3, shadows bit in CLC1GLS1bits, CLC1GLS2bits, CLC2GLS0bits, CLC2GLS1bits, CLC2GLS2bits, CLC3GLS0bits, CLC3GLS1bits, CLC3GLS2bits, CLC4GLS0bits, CLC4GLS1bits, CLC4GLS2bits */
#define LC1G1D2T             CLC1GLS0bits.LC1G1D2T          /* bit 3 */
#define D3N                  CLC1GLS0bits.D3N               /* bit 4, shadows bit in CLC1GLS1bits, CLC1GLS2bits, CLC2GLS0bits, CLC2GLS1bits, CLC2GLS2bits, CLC3GLS0bits, CLC3GLS1bits, CLC3GLS2bits, CLC4GLS0bits, CLC4GLS1bits, CLC4GLS2bits */
#define LC1G1D3N             CLC1GLS0bits.LC1G1D3N          /* bit 4 */
#define D3T                  CLC1GLS0bits.D3T               /* bit 5, shadows bit in CLC1GLS1bits, CLC1GLS2bits, CLC2GLS0bits, CLC2GLS1bits, CLC2GLS2bits, CLC3GLS0bits, CLC3GLS1bits, CLC3GLS2bits, CLC4GLS0bits, CLC4GLS1bits, CLC4GLS2bits */
#define LC1G1D3T             CLC1GLS0bits.LC1G1D3T          /* bit 5 */
#define D4N                  CLC1GLS0bits.D4N               /* bit 6, shadows bit in CLC1GLS1bits, CLC1GLS2bits, CLC2GLS0bits, CLC2GLS1bits, CLC2GLS2bits, CLC3GLS0bits, CLC3GLS1bits, CLC3GLS2bits, CLC4GLS0bits, CLC4GLS1bits, CLC4GLS2bits */
#define LC1G1D4N             CLC1GLS0bits.LC1G1D4N          /* bit 6 */
#define D4T                  CLC1GLS0bits.D4T               /* bit 7, shadows bit in CLC1GLS1bits, CLC1GLS2bits, CLC2GLS0bits, CLC2GLS1bits, CLC2GLS2bits, CLC3GLS0bits, CLC3GLS1bits, CLC3GLS2bits, CLC4GLS0bits, CLC4GLS1bits, CLC4GLS2bits */
#define LC1G1D4T             CLC1GLS0bits.LC1G1D4T          /* bit 7 */

#define LC1G2D1N             CLC1GLS1bits.LC1G2D1N          /* bit 0 */
#define LC1G2D1T             CLC1GLS1bits.LC1G2D1T          /* bit 1 */
#define LC1G2D2N             CLC1GLS1bits.LC1G2D2N          /* bit 2 */
#define LC1G2D2T             CLC1GLS1bits.LC1G2D2T          /* bit 3 */
#define LC1G2D3N             CLC1GLS1bits.LC1G2D3N          /* bit 4 */
#define LC1G2D3T             CLC1GLS1bits.LC1G2D3T          /* bit 5 */
#define LC1G2D4N             CLC1GLS1bits.LC1G2D4N          /* bit 6 */
#define LC1G2D4T             CLC1GLS1bits.LC1G2D4T          /* bit 7 */

#define LC1G3D1N             CLC1GLS2bits.LC1G3D1N          /* bit 0 */
#define LC1G3D1T             CLC1GLS2bits.LC1G3D1T          /* bit 1 */
#define LC1G3D2N             CLC1GLS2bits.LC1G3D2N          /* bit 2 */
#define LC1G3D2T             CLC1GLS2bits.LC1G3D2T          /* bit 3 */
#define LC1G3D3N             CLC1GLS2bits.LC1G3D3N          /* bit 4 */
#define LC1G3D3T             CLC1GLS2bits.LC1G3D3T          /* bit 5 */
#define LC1G3D4N             CLC1GLS2bits.LC1G3D4N          /* bit 6 */
#define LC1G3D4T             CLC1GLS2bits.LC1G3D4T          /* bit 7 */

#define G4D1N                CLC1GLS3bits.G4D1N             /* bit 0, shadows bit in CLC2GLS3bits, CLC3GLS3bits, CLC4GLS3bits */
#define LC1G4D1N             CLC1GLS3bits.LC1G4D1N          /* bit 0 */
#define G4D1T                CLC1GLS3bits.G4D1T             /* bit 1, shadows bit in CLC2GLS3bits, CLC3GLS3bits, CLC4GLS3bits */
#define LC1G4D1T             CLC1GLS3bits.LC1G4D1T          /* bit 1 */
#define G4D2N                CLC1GLS3bits.G4D2N             /* bit 2, shadows bit in CLC2GLS3bits, CLC3GLS3bits, CLC4GLS3bits */
#define LC1G4D2N             CLC1GLS3bits.LC1G4D2N          /* bit 2 */
#define G4D2T                CLC1GLS3bits.G4D2T             /* bit 3, shadows bit in CLC2GLS3bits, CLC3GLS3bits, CLC4GLS3bits */
#define LC1G4D2T             CLC1GLS3bits.LC1G4D2T          /* bit 3 */
#define G4D3N                CLC1GLS3bits.G4D3N             /* bit 4, shadows bit in CLC2GLS3bits, CLC3GLS3bits, CLC4GLS3bits */
#define LC1G4D3N             CLC1GLS3bits.LC1G4D3N          /* bit 4 */
#define G4D3T                CLC1GLS3bits.G4D3T             /* bit 5, shadows bit in CLC2GLS3bits, CLC3GLS3bits, CLC4GLS3bits */
#define LC1G4D3T             CLC1GLS3bits.LC1G4D3T          /* bit 5 */
#define G4D4N                CLC1GLS3bits.G4D4N             /* bit 6, shadows bit in CLC2GLS3bits, CLC3GLS3bits, CLC4GLS3bits */
#define LC1G4D4N             CLC1GLS3bits.LC1G4D4N          /* bit 6 */
#define G4D4T                CLC1GLS3bits.G4D4T             /* bit 7, shadows bit in CLC2GLS3bits, CLC3GLS3bits, CLC4GLS3bits */
#define LC1G4D4T             CLC1GLS3bits.LC1G4D4T          /* bit 7 */

#define G1POL                CLC1POLbits.G1POL              /* bit 0, shadows bit in CLC2POLbits, CLC3POLbits, CLC4POLbits */
#define LC1G1POL             CLC1POLbits.LC1G1POL           /* bit 0 */
#define G2POL                CLC1POLbits.G2POL              /* bit 1, shadows bit in CLC2POLbits, CLC3POLbits, CLC4POLbits */
#define LC1G2POL             CLC1POLbits.LC1G2POL           /* bit 1 */
#define G3POL                CLC1POLbits.G3POL              /* bit 2, shadows bit in CLC2POLbits, CLC3POLbits, CLC4POLbits */
#define LC1G3POL             CLC1POLbits.LC1G3POL           /* bit 2 */
#define G4POL                CLC1POLbits.G4POL              /* bit 3, shadows bit in CLC2POLbits, CLC3POLbits, CLC4POLbits */
#define LC1G4POL             CLC1POLbits.LC1G4POL           /* bit 3 */
#define LC1POL               CLC1POLbits.LC1POL             /* bit 7 */
#define POL                  CLC1POLbits.POL                /* bit 7, shadows bit in CLC2POLbits, CLC3POLbits, CLC4POLbits */

#define D1S0                 CLC1SEL0bits.D1S0              /* bit 0, shadows bit in CLC2SEL0bits, CLC3SEL0bits, CLC4SEL0bits */
#define LC1D1S0              CLC1SEL0bits.LC1D1S0           /* bit 0 */
#define D1S1                 CLC1SEL0bits.D1S1              /* bit 1, shadows bit in CLC2SEL0bits, CLC3SEL0bits, CLC4SEL0bits */
#define LC1D1S1              CLC1SEL0bits.LC1D1S1           /* bit 1 */
#define D1S2                 CLC1SEL0bits.D1S2              /* bit 2, shadows bit in CLC2SEL0bits, CLC3SEL0bits, CLC4SEL0bits */
#define LC1D1S2              CLC1SEL0bits.LC1D1S2           /* bit 2 */
#define D2S0                 CLC1SEL0bits.D2S0              /* bit 4, shadows bit in CLC2SEL0bits, CLC3SEL0bits, CLC4SEL0bits */
#define LC1D2S0              CLC1SEL0bits.LC1D2S0           /* bit 4 */
#define D2S1                 CLC1SEL0bits.D2S1              /* bit 5, shadows bit in CLC2SEL0bits, CLC3SEL0bits, CLC4SEL0bits */
#define LC1D2S1              CLC1SEL0bits.LC1D2S1           /* bit 5 */
#define D2S2                 CLC1SEL0bits.D2S2              /* bit 6, shadows bit in CLC2SEL0bits, CLC3SEL0bits, CLC4SEL0bits */
#define LC1D2S2              CLC1SEL0bits.LC1D2S2           /* bit 6 */

#define D3S0                 CLC1SEL1bits.D3S0              /* bit 0, shadows bit in CLC2SEL1bits, CLC3SEL1bits, CLC4SEL1bits */
#define LC1D3S0              CLC1SEL1bits.LC1D3S0           /* bit 0 */
#define D3S1                 CLC1SEL1bits.D3S1              /* bit 1, shadows bit in CLC2SEL1bits, CLC3SEL1bits, CLC4SEL1bits */
#define LC1D3S1              CLC1SEL1bits.LC1D3S1           /* bit 1 */
#define D3S2                 CLC1SEL1bits.D3S2              /* bit 2, shadows bit in CLC2SEL1bits, CLC3SEL1bits, CLC4SEL1bits */
#define LC1D3S2              CLC1SEL1bits.LC1D3S2           /* bit 2 */
#define D4S0                 CLC1SEL1bits.D4S0              /* bit 4, shadows bit in CLC2SEL1bits, CLC3SEL1bits, CLC4SEL1bits */
#define LC1D4S0              CLC1SEL1bits.LC1D4S0           /* bit 4 */
#define D4S1                 CLC1SEL1bits.D4S1              /* bit 5, shadows bit in CLC2SEL1bits, CLC3SEL1bits, CLC4SEL1bits */
#define LC1D4S1              CLC1SEL1bits.LC1D4S1           /* bit 5 */
#define D4S2                 CLC1SEL1bits.D4S2              /* bit 6, shadows bit in CLC2SEL1bits, CLC3SEL1bits, CLC4SEL1bits */
#define LC1D4S2              CLC1SEL1bits.LC1D4S2           /* bit 6 */

#define LC2MODE0             CLC2CONbits.LC2MODE0           /* bit 0 */
#define LC2MODE1             CLC2CONbits.LC2MODE1           /* bit 1 */
#define LC2MODE2             CLC2CONbits.LC2MODE2           /* bit 2 */
#define LC2INTN              CLC2CONbits.LC2INTN            /* bit 3 */
#define LC2INTP              CLC2CONbits.LC2INTP            /* bit 4 */
#define LC2OUT               CLC2CONbits.LC2OUT             /* bit 5 */
#define LC2OE                CLC2CONbits.LC2OE              /* bit 6 */
#define LC2EN                CLC2CONbits.LC2EN              /* bit 7 */

#define LC2G1D1N             CLC2GLS0bits.LC2G1D1N          /* bit 0 */
#define LC2G1D1T             CLC2GLS0bits.LC2G1D1T          /* bit 1 */
#define LC2G1D2N             CLC2GLS0bits.LC2G1D2N          /* bit 2 */
#define LC2G1D2T             CLC2GLS0bits.LC2G1D2T          /* bit 3 */
#define LC2G1D3N             CLC2GLS0bits.LC2G1D3N          /* bit 4 */
#define LC2G1D3T             CLC2GLS0bits.LC2G1D3T          /* bit 5 */
#define LC2G1D4N             CLC2GLS0bits.LC2G1D4N          /* bit 6 */
#define LC2G1D4T             CLC2GLS0bits.LC2G1D4T          /* bit 7 */

#define LC2G2D1N             CLC2GLS1bits.LC2G2D1N          /* bit 0 */
#define LC2G2D1T             CLC2GLS1bits.LC2G2D1T          /* bit 1 */
#define LC2G2D2N             CLC2GLS1bits.LC2G2D2N          /* bit 2 */
#define LC2G2D2T             CLC2GLS1bits.LC2G2D2T          /* bit 3 */
#define LC2G2D3N             CLC2GLS1bits.LC2G2D3N          /* bit 4 */
#define LC2G2D3T             CLC2GLS1bits.LC2G2D3T          /* bit 5 */
#define LC2G2D4N             CLC2GLS1bits.LC2G2D4N          /* bit 6 */
#define LC2G2D4T             CLC2GLS1bits.LC2G2D4T          /* bit 7 */

#define LC2G3D1N             CLC2GLS2bits.LC2G3D1N          /* bit 0 */
#define LC2G3D1T             CLC2GLS2bits.LC2G3D1T          /* bit 1 */
#define LC2G3D2N             CLC2GLS2bits.LC2G3D2N          /* bit 2 */
#define LC2G3D2T             CLC2GLS2bits.LC2G3D2T          /* bit 3 */
#define LC2G3D3N             CLC2GLS2bits.LC2G3D3N          /* bit 4 */
#define LC2G3D3T             CLC2GLS2bits.LC2G3D3T          /* bit 5 */
#define LC2G3D4N             CLC2GLS2bits.LC2G3D4N          /* bit 6 */
#define LC2G3D4T             CLC2GLS2bits.LC2G3D4T          /* bit 7 */

#define LC2G4D1N             CLC2GLS3bits.LC2G4D1N          /* bit 0 */
#define LC2G4D1T             CLC2GLS3bits.LC2G4D1T          /* bit 1 */
#define LC2G4D2N             CLC2GLS3bits.LC2G4D2N          /* bit 2 */
#define LC2G4D2T             CLC2GLS3bits.LC2G4D2T          /* bit 3 */
#define LC2G4D3N             CLC2GLS3bits.LC2G4D3N          /* bit 4 */
#define LC2G4D3T             CLC2GLS3bits.LC2G4D3T          /* bit 5 */
#define LC2G4D4N             CLC2GLS3bits.LC2G4D4N          /* bit 6 */
#define LC2G4D4T             CLC2GLS3bits.LC2G4D4T          /* bit 7 */

#define LC2G1POL             CLC2POLbits.LC2G1POL           /* bit 0 */
#define LC2G2POL             CLC2POLbits.LC2G2POL           /* bit 1 */
#define LC2G3POL             CLC2POLbits.LC2G3POL           /* bit 2 */
#define LC2G4POL             CLC2POLbits.LC2G4POL           /* bit 3 */
#define LC2POL               CLC2POLbits.LC2POL             /* bit 7 */

#define LC2D1S0              CLC2SEL0bits.LC2D1S0           /* bit 0 */
#define LC2D1S1              CLC2SEL0bits.LC2D1S1           /* bit 1 */
#define LC2D1S2              CLC2SEL0bits.LC2D1S2           /* bit 2 */
#define LC2D2S0              CLC2SEL0bits.LC2D2S0           /* bit 4 */
#define LC2D2S1              CLC2SEL0bits.LC2D2S1           /* bit 5 */
#define LC2D2S2              CLC2SEL0bits.LC2D2S2           /* bit 6 */

#define LC2D3S0              CLC2SEL1bits.LC2D3S0           /* bit 0 */
#define LC2D3S1              CLC2SEL1bits.LC2D3S1           /* bit 1 */
#define LC2D3S2              CLC2SEL1bits.LC2D3S2           /* bit 2 */
#define LC2D4S0              CLC2SEL1bits.LC2D4S0           /* bit 4 */
#define LC2D4S1              CLC2SEL1bits.LC2D4S1           /* bit 5 */
#define LC2D4S2              CLC2SEL1bits.LC2D4S2           /* bit 6 */

#define LC3MODE0             CLC3CONbits.LC3MODE0           /* bit 0 */
#define LC3MODE1             CLC3CONbits.LC3MODE1           /* bit 1 */
#define LC3MODE2             CLC3CONbits.LC3MODE2           /* bit 2 */
#define LC3INTN              CLC3CONbits.LC3INTN            /* bit 3 */
#define LC3INTP              CLC3CONbits.LC3INTP            /* bit 4 */
#define LC3OUT               CLC3CONbits.LC3OUT             /* bit 5 */
#define LC3OE                CLC3CONbits.LC3OE              /* bit 6 */
#define LC3EN                CLC3CONbits.LC3EN              /* bit 7 */

#define LC3G1D1N             CLC3GLS0bits.LC3G1D1N          /* bit 0 */
#define LC3G1D1T             CLC3GLS0bits.LC3G1D1T          /* bit 1 */
#define LC3G1D2N             CLC3GLS0bits.LC3G1D2N          /* bit 2 */
#define LC3G1D2T             CLC3GLS0bits.LC3G1D2T          /* bit 3 */
#define LC3G1D3N             CLC3GLS0bits.LC3G1D3N          /* bit 4 */
#define LC3G1D3T             CLC3GLS0bits.LC3G1D3T          /* bit 5 */
#define LC3G1D4N             CLC3GLS0bits.LC3G1D4N          /* bit 6 */
#define LC3G1D4T             CLC3GLS0bits.LC3G1D4T          /* bit 7 */

#define LC3G2D1N             CLC3GLS1bits.LC3G2D1N          /* bit 0 */
#define LC3G2D1T             CLC3GLS1bits.LC3G2D1T          /* bit 1 */
#define LC3G2D2N             CLC3GLS1bits.LC3G2D2N          /* bit 2 */
#define LC3G2D2T             CLC3GLS1bits.LC3G2D2T          /* bit 3 */
#define LC3G2D3N             CLC3GLS1bits.LC3G2D3N          /* bit 4 */
#define LC3G2D3T             CLC3GLS1bits.LC3G2D3T          /* bit 5 */
#define LC3G2D4N             CLC3GLS1bits.LC3G2D4N          /* bit 6 */
#define LC3G2D4T             CLC3GLS1bits.LC3G2D4T          /* bit 7 */

#define LC3G3D1N             CLC3GLS2bits.LC3G3D1N          /* bit 0 */
#define LC3G3D1T             CLC3GLS2bits.LC3G3D1T          /* bit 1 */
#define LC3G3D2N             CLC3GLS2bits.LC3G3D2N          /* bit 2 */
#define LC3G3D2T             CLC3GLS2bits.LC3G3D2T          /* bit 3 */
#define LC3G3D3N             CLC3GLS2bits.LC3G3D3N          /* bit 4 */
#define LC3G3D3T             CLC3GLS2bits.LC3G3D3T          /* bit 5 */
#define LC3G3D4N             CLC3GLS2bits.LC3G3D4N          /* bit 6 */
#define LC3G3D4T             CLC3GLS2bits.LC3G3D4T          /* bit 7 */

#define LC3G4D1N             CLC3GLS3bits.LC3G4D1N          /* bit 0 */
#define LC3G4D1T             CLC3GLS3bits.LC3G4D1T          /* bit 1 */
#define LC3G4D2N             CLC3GLS3bits.LC3G4D2N          /* bit 2 */
#define LC3G4D2T             CLC3GLS3bits.LC3G4D2T          /* bit 3 */
#define LC3G4D3N             CLC3GLS3bits.LC3G4D3N          /* bit 4 */
#define LC3G4D3T             CLC3GLS3bits.LC3G4D3T          /* bit 5 */
#define LC3G4D4N             CLC3GLS3bits.LC3G4D4N          /* bit 6 */
#define LC3G4D4T             CLC3GLS3bits.LC3G4D4T          /* bit 7 */

#define LC3G1POL             CLC3POLbits.LC3G1POL           /* bit 0 */
#define LC3G2POL             CLC3POLbits.LC3G2POL           /* bit 1 */
#define LC3G3POL             CLC3POLbits.LC3G3POL           /* bit 2 */
#define LC3G4POL             CLC3POLbits.LC3G4POL           /* bit 3 */
#define LC3POL               CLC3POLbits.LC3POL             /* bit 7 */

#define LC3D1S0              CLC3SEL0bits.LC3D1S0           /* bit 0 */
#define LC3D1S1              CLC3SEL0bits.LC3D1S1           /* bit 1 */
#define LC3D1S2              CLC3SEL0bits.LC3D1S2           /* bit 2 */
#define LC3D2S0              CLC3SEL0bits.LC3D2S0           /* bit 4 */
#define LC3D2S1              CLC3SEL0bits.LC3D2S1           /* bit 5 */
#define LC3D2S2              CLC3SEL0bits.LC3D2S2           /* bit 6 */

#define LC3D3S0              CLC3SEL1bits.LC3D3S0           /* bit 0 */
#define LC3D3S1              CLC3SEL1bits.LC3D3S1           /* bit 1 */
#define LC3D3S2              CLC3SEL1bits.LC3D3S2           /* bit 2 */
#define LC3D4S0              CLC3SEL1bits.LC3D4S0           /* bit 4 */
#define LC3D4S1              CLC3SEL1bits.LC3D4S1           /* bit 5 */
#define LC3D4S2              CLC3SEL1bits.LC3D4S2           /* bit 6 */

#define LC4MODE0             CLC4CONbits.LC4MODE0           /* bit 0 */
#define LC4MODE1             CLC4CONbits.LC4MODE1           /* bit 1 */
#define LC4MODE2             CLC4CONbits.LC4MODE2           /* bit 2 */
#define LC4INTN              CLC4CONbits.LC4INTN            /* bit 3 */
#define LC4INTP              CLC4CONbits.LC4INTP            /* bit 4 */
#define LC4OUT               CLC4CONbits.LC4OUT             /* bit 5 */
#define LC4OE                CLC4CONbits.LC4OE              /* bit 6 */
#define LC4EN                CLC4CONbits.LC4EN              /* bit 7 */

#define LC4G1D1N             CLC4GLS0bits.LC4G1D1N          /* bit 0 */
#define LC4G1D1T             CLC4GLS0bits.LC4G1D1T          /* bit 1 */
#define LC4G1D2N             CLC4GLS0bits.LC4G1D2N          /* bit 2 */
#define LC4G1D2T             CLC4GLS0bits.LC4G1D2T          /* bit 3 */
#define LC4G1D3N             CLC4GLS0bits.LC4G1D3N          /* bit 4 */
#define LC4G1D3T             CLC4GLS0bits.LC4G1D3T          /* bit 5 */
#define LC4G1D4N             CLC4GLS0bits.LC4G1D4N          /* bit 6 */
#define LC4G1D4T             CLC4GLS0bits.LC4G1D4T          /* bit 7 */

#define LC4G2D1N             CLC4GLS1bits.LC4G2D1N          /* bit 0 */
#define LC4G2D1T             CLC4GLS1bits.LC4G2D1T          /* bit 1 */
#define LC4G2D2N             CLC4GLS1bits.LC4G2D2N          /* bit 2 */
#define LC4G2D2T             CLC4GLS1bits.LC4G2D2T          /* bit 3 */
#define LC4G2D3N             CLC4GLS1bits.LC4G2D3N          /* bit 4 */
#define LC4G2D3T             CLC4GLS1bits.LC4G2D3T          /* bit 5 */
#define LC4G2D4N             CLC4GLS1bits.LC4G2D4N          /* bit 6 */
#define LC4G2D4T             CLC4GLS1bits.LC4G2D4T          /* bit 7 */

#define LC4G3D1N             CLC4GLS2bits.LC4G3D1N          /* bit 0 */
#define LC4G3D1T             CLC4GLS2bits.LC4G3D1T          /* bit 1 */
#define LC4G3D2N             CLC4GLS2bits.LC4G3D2N          /* bit 2 */
#define LC4G3D2T             CLC4GLS2bits.LC4G3D2T          /* bit 3 */
#define LC4G3D3N             CLC4GLS2bits.LC4G3D3N          /* bit 4 */
#define LC4G3D3T             CLC4GLS2bits.LC4G3D3T          /* bit 5 */
#define LC4G3D4N             CLC4GLS2bits.LC4G3D4N          /* bit 6 */
#define LC4G3D4T             CLC4GLS2bits.LC4G3D4T          /* bit 7 */

#define LC4G4D1N             CLC4GLS3bits.LC4G4D1N          /* bit 0 */
#define LC4G4D1T             CLC4GLS3bits.LC4G4D1T          /* bit 1 */
#define LC4G4D2N             CLC4GLS3bits.LC4G4D2N          /* bit 2 */
#define LC4G4D2T             CLC4GLS3bits.LC4G4D2T          /* bit 3 */
#define LC4G4D3N             CLC4GLS3bits.LC4G4D3N          /* bit 4 */
#define LC4G4D3T             CLC4GLS3bits.LC4G4D3T          /* bit 5 */
#define LC4G4D4N             CLC4GLS3bits.LC4G4D4N          /* bit 6 */
#define LC4G4D4T             CLC4GLS3bits.LC4G4D4T          /* bit 7 */

#define LC4G1POL             CLC4POLbits.LC4G1POL           /* bit 0 */
#define LC4G2POL             CLC4POLbits.LC4G2POL           /* bit 1 */
#define LC4G3POL             CLC4POLbits.LC4G3POL           /* bit 2 */
#define LC4G4POL             CLC4POLbits.LC4G4POL           /* bit 3 */
#define LC4POL               CLC4POLbits.LC4POL             /* bit 7 */

#define LC4D1S0              CLC4SEL0bits.LC4D1S0           /* bit 0 */
#define LC4D1S1              CLC4SEL0bits.LC4D1S1           /* bit 1 */
#define LC4D1S2              CLC4SEL0bits.LC4D1S2           /* bit 2 */
#define LC4D2S0              CLC4SEL0bits.LC4D2S0           /* bit 4 */
#define LC4D2S1              CLC4SEL0bits.LC4D2S1           /* bit 5 */
#define LC4D2S2              CLC4SEL0bits.LC4D2S2           /* bit 6 */

#define LC4D3S0              CLC4SEL1bits.LC4D3S0           /* bit 0 */
#define LC4D3S1              CLC4SEL1bits.LC4D3S1           /* bit 1 */
#define LC4D3S2              CLC4SEL1bits.LC4D3S2           /* bit 2 */
#define LC4D4S0              CLC4SEL1bits.LC4D4S0           /* bit 4 */
#define LC4D4S1              CLC4SEL1bits.LC4D4S1           /* bit 5 */
#define LC4D4S2              CLC4SEL1bits.LC4D4S2           /* bit 6 */

#define MCLC1OUT             CLCDATAbits.MCLC1OUT           /* bit 0 */
#define MCLC2OUT             CLCDATAbits.MCLC2OUT           /* bit 1 */
#define MCLC3OUT             CLCDATAbits.MCLC3OUT           /* bit 2 */
#define MCLC4OUT             CLCDATAbits.MCLC4OUT           /* bit 3 */

#define C1SYNC               CM1CON0bits.C1SYNC             /* bit 0 */
#define C1HYS                CM1CON0bits.C1HYS              /* bit 1 */
#define C1SP                 CM1CON0bits.C1SP               /* bit 2 */
#define C1POL                CM1CON0bits.C1POL              /* bit 4 */
#define C1OE                 CM1CON0bits.C1OE               /* bit 5 */
#define C1OUT                CM1CON0bits.C1OUT              /* bit 6 */
#define C1ON                 CM1CON0bits.C1ON               /* bit 7 */

#define C1NCH0               CM1CON1bits.C1NCH0             /* bit 0 */
#define C1NCH1               CM1CON1bits.C1NCH1             /* bit 1 */
#define C1NCH2               CM1CON1bits.C1NCH2             /* bit 2 */
#define C1PCH0               CM1CON1bits.C1PCH0             /* bit 4 */
#define C1PCH1               CM1CON1bits.C1PCH1             /* bit 5 */
#define C1INTN               CM1CON1bits.C1INTN             /* bit 6 */
#define C1INTP               CM1CON1bits.C1INTP             /* bit 7 */

#define C2SYNC               CM2CON0bits.C2SYNC             /* bit 0 */
#define C2HYS                CM2CON0bits.C2HYS              /* bit 1 */
#define C2SP                 CM2CON0bits.C2SP               /* bit 2 */
#define C2POL                CM2CON0bits.C2POL              /* bit 4 */
#define C2OE                 CM2CON0bits.C2OE               /* bit 5 */
#define C2OUT                CM2CON0bits.C2OUT              /* bit 6 */
#define C2ON                 CM2CON0bits.C2ON               /* bit 7 */

#define C2NCH0               CM2CON1bits.C2NCH0             /* bit 0 */
#define C2NCH1               CM2CON1bits.C2NCH1             /* bit 1 */
#define C2NCH2               CM2CON1bits.C2NCH2             /* bit 2 */
#define C2PCH0               CM2CON1bits.C2PCH0             /* bit 4 */
#define C2PCH1               CM2CON1bits.C2PCH1             /* bit 5 */
#define C2INTN               CM2CON1bits.C2INTN             /* bit 6 */
#define C2INTP               CM2CON1bits.C2INTP             /* bit 7 */

#define MC1OUT               CMOUTbits.MC1OUT               /* bit 0 */
#define MC2OUT               CMOUTbits.MC2OUT               /* bit 1 */

#define G1CS0                CWG1CON0bits.G1CS0             /* bit 0 */
#define G1POLA               CWG1CON0bits.G1POLA            /* bit 3 */
#define G1POLB               CWG1CON0bits.G1POLB            /* bit 4 */
#define G1OEA                CWG1CON0bits.G1OEA             /* bit 5 */
#define G1OEB                CWG1CON0bits.G1OEB             /* bit 6 */
#define G1EN                 CWG1CON0bits.G1EN              /* bit 7 */

#define G1IS0                CWG1CON1bits.G1IS0             /* bit 0 */
#define G1IS1                CWG1CON1bits.G1IS1             /* bit 1 */
#define G1IS2                CWG1CON1bits.G1IS2             /* bit 2 */
#define G1ASDLA0             CWG1CON1bits.G1ASDLA0          /* bit 4 */
#define G1ASDLA1             CWG1CON1bits.G1ASDLA1          /* bit 5 */
#define G1ASDLB0             CWG1CON1bits.G1ASDLB0          /* bit 6 */
#define G1ASDLB1             CWG1CON1bits.G1ASDLB1          /* bit 7 */

#define G1ASDSCLC2           CWG1CON2bits.G1ASDSCLC2        /* bit 0 */
#define G1ASDSFLT            CWG1CON2bits.G1ASDSFLT         /* bit 1 */
#define G1ASDSC1             CWG1CON2bits.G1ASDSC1          /* bit 2 */
#define G1ASDSC2             CWG1CON2bits.G1ASDSC2          /* bit 3 */
#define G1ARSEN              CWG1CON2bits.G1ARSEN           /* bit 6 */
#define G1ASE                CWG1CON2bits.G1ASE             /* bit 7 */

#define CWG1DBF0             CWG1DBFbits.CWG1DBF0           /* bit 0 */
#define CWG1DBF1             CWG1DBFbits.CWG1DBF1           /* bit 1 */
#define CWG1DBF2             CWG1DBFbits.CWG1DBF2           /* bit 2 */
#define CWG1DBF3             CWG1DBFbits.CWG1DBF3           /* bit 3 */
#define CWG1DBF4             CWG1DBFbits.CWG1DBF4           /* bit 4 */
#define CWG1DBF5             CWG1DBFbits.CWG1DBF5           /* bit 5 */

#define CWG1DBR0             CWG1DBRbits.CWG1DBR0           /* bit 0 */
#define CWG1DBR1             CWG1DBRbits.CWG1DBR1           /* bit 1 */
#define CWG1DBR2             CWG1DBRbits.CWG1DBR2           /* bit 2 */
#define CWG1DBR3             CWG1DBRbits.CWG1DBR3           /* bit 3 */
#define CWG1DBR4             CWG1DBRbits.CWG1DBR4           /* bit 4 */
#define CWG1DBR5             CWG1DBRbits.CWG1DBR5           /* bit 5 */

#define DACPSS               DACCON0bits.DACPSS             /* bit 2 */
#define DACOE2               DACCON0bits.DACOE2             /* bit 4 */
#define DACOE1               DACCON0bits.DACOE1             /* bit 5 */
#define DACEN                DACCON0bits.DACEN              /* bit 7 */

#define DACR0                DACCON1bits.DACR0              /* bit 0 */
#define DACR1                DACCON1bits.DACR1              /* bit 1 */
#define DACR2                DACCON1bits.DACR2              /* bit 2 */
#define DACR3                DACCON1bits.DACR3              /* bit 3 */
#define DACR4                DACCON1bits.DACR4              /* bit 4 */

#define DEVSEL0              DEVSELbits.DEVSEL0             /* bit 0 */
#define DEVSEL1              DEVSELbits.DEVSEL1             /* bit 1 */
#define DEVSEL2              DEVSELbits.DEVSEL2             /* bit 2 */

#define ADFVR0               FVRCONbits.ADFVR0              /* bit 0 */
#define ADFVR1               FVRCONbits.ADFVR1              /* bit 1 */
#define CDAFVR0              FVRCONbits.CDAFVR0             /* bit 2 */
#define CDAFVR1              FVRCONbits.CDAFVR1             /* bit 3 */
#define TSRNG                FVRCONbits.TSRNG               /* bit 4 */
#define TSEN                 FVRCONbits.TSEN                /* bit 5 */
#define FVRRDY               FVRCONbits.FVRRDY              /* bit 6 */
#define FVREN                FVRCONbits.FVREN               /* bit 7 */

#define BKHLT                ICDBK0CONbits.BKHLT            /* bit 0 */
#define BKEN                 ICDBK0CONbits.BKEN             /* bit 7 */

#define BKA8                 ICDBK0Hbits.BKA8               /* bit 0 */
#define BKA9                 ICDBK0Hbits.BKA9               /* bit 1 */
#define BKA10                ICDBK0Hbits.BKA10              /* bit 2 */
#define BKA11                ICDBK0Hbits.BKA11              /* bit 3 */
#define BKA12                ICDBK0Hbits.BKA12              /* bit 4 */
#define BKA13                ICDBK0Hbits.BKA13              /* bit 5 */
#define BKA14                ICDBK0Hbits.BKA14              /* bit 6 */

#define BKA0                 ICDBK0Lbits.BKA0               /* bit 0 */
#define BKA1                 ICDBK0Lbits.BKA1               /* bit 1 */
#define BKA2                 ICDBK0Lbits.BKA2               /* bit 2 */
#define BKA3                 ICDBK0Lbits.BKA3               /* bit 3 */
#define BKA4                 ICDBK0Lbits.BKA4               /* bit 4 */
#define BKA5                 ICDBK0Lbits.BKA5               /* bit 5 */
#define BKA6                 ICDBK0Lbits.BKA6               /* bit 6 */
#define BKA7                 ICDBK0Lbits.BKA7               /* bit 7 */

#define RSTVEC               ICDCON0bits.RSTVEC             /* bit 0 */
#define DBGINEX              ICDCON0bits.DBGINEX            /* bit 3 */
#define SSTEP                ICDCON0bits.SSTEP              /* bit 5 */
#define FREEZ                ICDCON0bits.FREEZ              /* bit 6 */
#define INBUG                ICDCON0bits.INBUG              /* bit 7 */

#define DBGIN8               ICDINSTHbits.DBGIN8            /* bit 0 */
#define DBGIN9               ICDINSTHbits.DBGIN9            /* bit 1 */
#define DBGIN10              ICDINSTHbits.DBGIN10           /* bit 2 */
#define DBGIN11              ICDINSTHbits.DBGIN11           /* bit 3 */
#define DBGIN12              ICDINSTHbits.DBGIN12           /* bit 4 */
#define DBGIN13              ICDINSTHbits.DBGIN13           /* bit 5 */

#define DBGIN0               ICDINSTLbits.DBGIN0            /* bit 0 */
#define DBGIN1               ICDINSTLbits.DBGIN1            /* bit 1 */
#define DBGIN2               ICDINSTLbits.DBGIN2            /* bit 2 */
#define DBGIN3               ICDINSTLbits.DBGIN3            /* bit 3 */
#define DBGIN4               ICDINSTLbits.DBGIN4            /* bit 4 */
#define DBGIN5               ICDINSTLbits.DBGIN5            /* bit 5 */
#define DBGIN6               ICDINSTLbits.DBGIN6            /* bit 6 */
#define DBGIN7               ICDINSTLbits.DBGIN7            /* bit 7 */

#define TRIS_ICDCLK          ICDIObits.TRIS_ICDCLK          /* bit 2 */
#define TRIS_ICDDAT          ICDIObits.TRIS_ICDDAT          /* bit 3 */
#define LAT_ICDCLK           ICDIObits.LAT_ICDCLK           /* bit 4 */
#define LAT_ICDDAT           ICDIObits.LAT_ICDDAT           /* bit 5 */
#define PORT_ICDCLK          ICDIObits.PORT_ICDCLK          /* bit 6 */
#define PORT_ICDDAT          ICDIObits.PORT_ICDDAT          /* bit 7 */

#define USRHLTF              ICDSTATbits.USRHLTF            /* bit 1 */
#define TRP0HLTF             ICDSTATbits.TRP0HLTF           /* bit 6 */
#define TRP1HLTF             ICDSTATbits.TRP1HLTF           /* bit 7 */

#define IOCIF                INTCONbits.IOCIF               /* bit 0 */
#define INTF                 INTCONbits.INTF                /* bit 1 */
#define T0IF                 INTCONbits.T0IF                /* bit 2 */
#define TMR0IF               INTCONbits.TMR0IF              /* bit 2 */
#define IOCIE                INTCONbits.IOCIE               /* bit 3 */
#define INTE                 INTCONbits.INTE                /* bit 4 */
#define T0IE                 INTCONbits.T0IE                /* bit 5 */
#define TMR0IE               INTCONbits.TMR0IE              /* bit 5 */
#define PEIE                 INTCONbits.PEIE                /* bit 6 */
#define GIE                  INTCONbits.GIE                 /* bit 7 */

#define IOCAF0               IOCAFbits.IOCAF0               /* bit 0 */
#define IOCAF1               IOCAFbits.IOCAF1               /* bit 1 */
#define IOCAF2               IOCAFbits.IOCAF2               /* bit 2 */
#define IOCAF3               IOCAFbits.IOCAF3               /* bit 3 */
#define IOCAF4               IOCAFbits.IOCAF4               /* bit 4 */
#define IOCAF5               IOCAFbits.IOCAF5               /* bit 5 */

#define IOCAN0               IOCANbits.IOCAN0               /* bit 0 */
#define IOCAN1               IOCANbits.IOCAN1               /* bit 1 */
#define IOCAN2               IOCANbits.IOCAN2               /* bit 2 */
#define IOCAN3               IOCANbits.IOCAN3               /* bit 3 */
#define IOCAN4               IOCANbits.IOCAN4               /* bit 4 */
#define IOCAN5               IOCANbits.IOCAN5               /* bit 5 */

#define IOCAP0               IOCAPbits.IOCAP0               /* bit 0 */
#define IOCAP1               IOCAPbits.IOCAP1               /* bit 1 */
#define IOCAP2               IOCAPbits.IOCAP2               /* bit 2 */
#define IOCAP3               IOCAPbits.IOCAP3               /* bit 3 */
#define IOCAP4               IOCAPbits.IOCAP4               /* bit 4 */
#define IOCAP5               IOCAPbits.IOCAP5               /* bit 5 */

#define IOCBF4               IOCBFbits.IOCBF4               /* bit 4 */
#define IOCBF5               IOCBFbits.IOCBF5               /* bit 5 */
#define IOCBF6               IOCBFbits.IOCBF6               /* bit 6 */
#define IOCBF7               IOCBFbits.IOCBF7               /* bit 7 */

#define IOCBN4               IOCBNbits.IOCBN4               /* bit 4 */
#define IOCBN5               IOCBNbits.IOCBN5               /* bit 5 */
#define IOCBN6               IOCBNbits.IOCBN6               /* bit 6 */
#define IOCBN7               IOCBNbits.IOCBN7               /* bit 7 */

#define IOCBP4               IOCBPbits.IOCBP4               /* bit 4 */
#define IOCBP5               IOCBPbits.IOCBP5               /* bit 5 */
#define IOCBP6               IOCBPbits.IOCBP6               /* bit 6 */
#define IOCBP7               IOCBPbits.IOCBP7               /* bit 7 */

#define LATA0                LATAbits.LATA0                 /* bit 0 */
#define LATA1                LATAbits.LATA1                 /* bit 1 */
#define LATA2                LATAbits.LATA2                 /* bit 2 */
#define LATA4                LATAbits.LATA4                 /* bit 4 */
#define LATA5                LATAbits.LATA5                 /* bit 5 */

#define LATB4                LATBbits.LATB4                 /* bit 4 */
#define LATB5                LATBbits.LATB5                 /* bit 5 */
#define LATB6                LATBbits.LATB6                 /* bit 6 */
#define LATB7                LATBbits.LATB7                 /* bit 7 */

#define LATC0                LATCbits.LATC0                 /* bit 0 */
#define LATC1                LATCbits.LATC1                 /* bit 1 */
#define LATC2                LATCbits.LATC2                 /* bit 2 */
#define LATC3                LATCbits.LATC3                 /* bit 3 */
#define LATC4                LATCbits.LATC4                 /* bit 4 */
#define LATC5                LATCbits.LATC5                 /* bit 5 */
#define LATC6                LATCbits.LATC6                 /* bit 6 */
#define LATC7                LATCbits.LATC7                 /* bit 7 */

#define NCO1ACC8             NCO1ACCHbits.NCO1ACC8          /* bit 0 */
#define NCO1ACC9             NCO1ACCHbits.NCO1ACC9          /* bit 1 */
#define NCO1ACC10            NCO1ACCHbits.NCO1ACC10         /* bit 2 */
#define NCO1ACC11            NCO1ACCHbits.NCO1ACC11         /* bit 3 */
#define NCO1ACC12            NCO1ACCHbits.NCO1ACC12         /* bit 4 */
#define NCO1ACC13            NCO1ACCHbits.NCO1ACC13         /* bit 5 */
#define NCO1ACC14            NCO1ACCHbits.NCO1ACC14         /* bit 6 */
#define NCO1ACC15            NCO1ACCHbits.NCO1ACC15         /* bit 7 */

#define NCO1ACC0             NCO1ACCLbits.NCO1ACC0          /* bit 0 */
#define NCO1ACC1             NCO1ACCLbits.NCO1ACC1          /* bit 1 */
#define NCO1ACC2             NCO1ACCLbits.NCO1ACC2          /* bit 2 */
#define NCO1ACC3             NCO1ACCLbits.NCO1ACC3          /* bit 3 */
#define NCO1ACC4             NCO1ACCLbits.NCO1ACC4          /* bit 4 */
#define NCO1ACC5             NCO1ACCLbits.NCO1ACC5          /* bit 5 */
#define NCO1ACC6             NCO1ACCLbits.NCO1ACC6          /* bit 6 */
#define NCO1ACC7             NCO1ACCLbits.NCO1ACC7          /* bit 7 */

#define NCO1ACC16            NCO1ACCUbits.NCO1ACC16         /* bit 0 */
#define NCO1ACC17            NCO1ACCUbits.NCO1ACC17         /* bit 1 */
#define NCO1ACC18            NCO1ACCUbits.NCO1ACC18         /* bit 2 */
#define NCO1ACC19            NCO1ACCUbits.NCO1ACC19         /* bit 3 */

#define N1CKS0               NCO1CLKbits.N1CKS0             /* bit 0 */
#define N1CKS1               NCO1CLKbits.N1CKS1             /* bit 1 */
#define N1PWS0               NCO1CLKbits.N1PWS0             /* bit 5 */
#define N1PWS1               NCO1CLKbits.N1PWS1             /* bit 6 */
#define N1PWS2               NCO1CLKbits.N1PWS2             /* bit 7 */

#define N1PFM                NCO1CONbits.N1PFM              /* bit 0 */
#define N1POL                NCO1CONbits.N1POL              /* bit 4 */
#define N1OUT                NCO1CONbits.N1OUT              /* bit 5 */
#define N1OE                 NCO1CONbits.N1OE               /* bit 6 */
#define N1EN                 NCO1CONbits.N1EN               /* bit 7 */

#define NCO1INC8             NCO1INCHbits.NCO1INC8          /* bit 0 */
#define NCO1INC9             NCO1INCHbits.NCO1INC9          /* bit 1 */
#define NCO1INC10            NCO1INCHbits.NCO1INC10         /* bit 2 */
#define NCO1INC11            NCO1INCHbits.NCO1INC11         /* bit 3 */
#define NCO1INC12            NCO1INCHbits.NCO1INC12         /* bit 4 */
#define NCO1INC13            NCO1INCHbits.NCO1INC13         /* bit 5 */
#define NCO1INC14            NCO1INCHbits.NCO1INC14         /* bit 6 */
#define NCO1INC15            NCO1INCHbits.NCO1INC15         /* bit 7 */

#define NCO1INC0             NCO1INCLbits.NCO1INC0          /* bit 0 */
#define NCO1INC1             NCO1INCLbits.NCO1INC1          /* bit 1 */
#define NCO1INC2             NCO1INCLbits.NCO1INC2          /* bit 2 */
#define NCO1INC3             NCO1INCLbits.NCO1INC3          /* bit 3 */
#define NCO1INC4             NCO1INCLbits.NCO1INC4          /* bit 4 */
#define NCO1INC5             NCO1INCLbits.NCO1INC5          /* bit 5 */
#define NCO1INC6             NCO1INCLbits.NCO1INC6          /* bit 6 */
#define NCO1INC7             NCO1INCLbits.NCO1INC7          /* bit 7 */

#define PS0                  OPTION_REGbits.PS0             /* bit 0 */
#define PS1                  OPTION_REGbits.PS1             /* bit 1 */
#define PS2                  OPTION_REGbits.PS2             /* bit 2 */
#define PSA                  OPTION_REGbits.PSA             /* bit 3 */
#define T0SE                 OPTION_REGbits.T0SE            /* bit 4 */
#define TMR0SE               OPTION_REGbits.TMR0SE          /* bit 4 */
#define T0CS                 OPTION_REGbits.T0CS            /* bit 5 */
#define TMR0CS               OPTION_REGbits.TMR0CS          /* bit 5 */
#define INTEDG               OPTION_REGbits.INTEDG          /* bit 6 */
#define NOT_WPUEN            OPTION_REGbits.NOT_WPUEN       /* bit 7 */

#define SCS0                 OSCCONbits.SCS0                /* bit 0 */
#define SCS1                 OSCCONbits.SCS1                /* bit 1 */
#define IRCF0                OSCCONbits.IRCF0               /* bit 3 */
#define IRCF1                OSCCONbits.IRCF1               /* bit 4 */
#define IRCF2                OSCCONbits.IRCF2               /* bit 5 */
#define IRCF3                OSCCONbits.IRCF3               /* bit 6 */

#define HFIOFS               OSCSTATbits.HFIOFS             /* bit 0 */
#define LFIOFR               OSCSTATbits.LFIOFR             /* bit 1 */
#define HFIOFR               OSCSTATbits.HFIOFR             /* bit 4 */
#define OSTS                 OSCSTATbits.OSTS               /* bit 5 */
#define SOSCR                OSCSTATbits.SOSCR              /* bit 7 */

#define NOT_BOR              PCONbits.NOT_BOR               /* bit 0 */
#define NOT_POR              PCONbits.NOT_POR               /* bit 1 */
#define NOT_RI               PCONbits.NOT_RI                /* bit 2 */
#define NOT_RMCLR            PCONbits.NOT_RMCLR             /* bit 3 */
#define NOT_RWDT             PCONbits.NOT_RWDT              /* bit 4 */
#define STKUNF               PCONbits.STKUNF                /* bit 6 */
#define STKOVF               PCONbits.STKOVF                /* bit 7 */

#define TMR1IE               PIE1bits.TMR1IE                /* bit 0 */
#define TMR2IE               PIE1bits.TMR2IE                /* bit 1 */
#define SSP1IE               PIE1bits.SSP1IE                /* bit 3 */
#define TXIE                 PIE1bits.TXIE                  /* bit 4 */
#define RCIE                 PIE1bits.RCIE                  /* bit 5 */
#define ADIE                 PIE1bits.ADIE                  /* bit 6 */
#define TMR1GIE              PIE1bits.TMR1GIE               /* bit 7 */

#define NCO1IE               PIE2bits.NCO1IE                /* bit 2 */
#define BCL1IE               PIE2bits.BCL1IE                /* bit 3 */
#define C1IE                 PIE2bits.C1IE                  /* bit 5 */
#define C2IE                 PIE2bits.C2IE                  /* bit 6 */
#define OSFIE                PIE2bits.OSFIE                 /* bit 7 */

#define CLC1IE               PIE3bits.CLC1IE                /* bit 0 */
#define CLC2IE               PIE3bits.CLC2IE                /* bit 1 */
#define CLC3IE               PIE3bits.CLC3IE                /* bit 2 */
#define CLC4IE               PIE3bits.CLC4IE                /* bit 3 */

#define TMR1IF               PIR1bits.TMR1IF                /* bit 0 */
#define TMR2IF               PIR1bits.TMR2IF                /* bit 1 */
#define SSP1IF               PIR1bits.SSP1IF                /* bit 3 */
#define TXIF                 PIR1bits.TXIF                  /* bit 4 */
#define RCIF                 PIR1bits.RCIF                  /* bit 5 */
#define ADIF                 PIR1bits.ADIF                  /* bit 6 */
#define TMR1GIF              PIR1bits.TMR1GIF               /* bit 7 */

#define NCO1IF               PIR2bits.NCO1IF                /* bit 2 */
#define BCL1IF               PIR2bits.BCL1IF                /* bit 3 */
#define C1IF                 PIR2bits.C1IF                  /* bit 5 */
#define C2IF                 PIR2bits.C2IF                  /* bit 6 */
#define OSFIF                PIR2bits.OSFIF                 /* bit 7 */

#define CLC1IF               PIR3bits.CLC1IF                /* bit 0 */
#define CLC2IF               PIR3bits.CLC2IF                /* bit 1 */
#define CLC3IF               PIR3bits.CLC3IF                /* bit 2 */
#define CLC4IF               PIR3bits.CLC4IF                /* bit 3 */

#define RD                   PMCON1bits.RD                  /* bit 0 */
#define WR                   PMCON1bits.WR                  /* bit 1 */
#define WREN                 PMCON1bits.WREN                /* bit 2 */
#define WRERR                PMCON1bits.WRERR               /* bit 3 */
#define FREE                 PMCON1bits.FREE                /* bit 4 */
#define LWLO                 PMCON1bits.LWLO                /* bit 5 */
#define CFGS                 PMCON1bits.CFGS                /* bit 6 */
#define EEPGD                PMCON1bits.EEPGD               /* bit 7 */

#define RA0                  PORTAbits.RA0                  /* bit 0 */
#define RA1                  PORTAbits.RA1                  /* bit 1 */
#define RA2                  PORTAbits.RA2                  /* bit 2 */
#define RA3                  PORTAbits.RA3                  /* bit 3 */
#define RA4                  PORTAbits.RA4                  /* bit 4 */
#define RA5                  PORTAbits.RA5                  /* bit 5 */

#define RB4                  PORTBbits.RB4                  /* bit 4 */
#define RB5                  PORTBbits.RB5                  /* bit 5 */
#define RB6                  PORTBbits.RB6                  /* bit 6 */
#define RB7                  PORTBbits.RB7                  /* bit 7 */

#define RC0                  PORTCbits.RC0                  /* bit 0 */
#define RC1                  PORTCbits.RC1                  /* bit 1 */
#define RC2                  PORTCbits.RC2                  /* bit 2 */
#define RC3                  PORTCbits.RC3                  /* bit 3 */
#define RC4                  PORTCbits.RC4                  /* bit 4 */
#define RC5                  PORTCbits.RC5                  /* bit 5 */
#define RC6                  PORTCbits.RC6                  /* bit 6 */
#define RC7                  PORTCbits.RC7                  /* bit 7 */

#define PWM1POL              PWM1CONbits.PWM1POL            /* bit 4, shadows bit in PWM1CON0bits */
#define PWM1OUT              PWM1CONbits.PWM1OUT            /* bit 5, shadows bit in PWM1CON0bits */
#define PWM1OE               PWM1CONbits.PWM1OE             /* bit 6, shadows bit in PWM1CON0bits */
#define PWM1EN               PWM1CONbits.PWM1EN             /* bit 7, shadows bit in PWM1CON0bits */

#define PWM1DCH0             PWM1DCHbits.PWM1DCH0           /* bit 0 */
#define PWM1DCH1             PWM1DCHbits.PWM1DCH1           /* bit 1 */
#define PWM1DCH2             PWM1DCHbits.PWM1DCH2           /* bit 2 */
#define PWM1DCH3             PWM1DCHbits.PWM1DCH3           /* bit 3 */
#define PWM1DCH4             PWM1DCHbits.PWM1DCH4           /* bit 4 */
#define PWM1DCH5             PWM1DCHbits.PWM1DCH5           /* bit 5 */
#define PWM1DCH6             PWM1DCHbits.PWM1DCH6           /* bit 6 */
#define PWM1DCH7             PWM1DCHbits.PWM1DCH7           /* bit 7 */

#define PWM1DCL0             PWM1DCLbits.PWM1DCL0           /* bit 6 */
#define PWM1DCL1             PWM1DCLbits.PWM1DCL1           /* bit 7 */

#define PWM2POL              PWM2CONbits.PWM2POL            /* bit 4, shadows bit in PWM2CON0bits */
#define PWM2OUT              PWM2CONbits.PWM2OUT            /* bit 5, shadows bit in PWM2CON0bits */
#define PWM2OE               PWM2CONbits.PWM2OE             /* bit 6, shadows bit in PWM2CON0bits */
#define PWM2EN               PWM2CONbits.PWM2EN             /* bit 7, shadows bit in PWM2CON0bits */

#define PWM2DCH0             PWM2DCHbits.PWM2DCH0           /* bit 0 */
#define PWM2DCH1             PWM2DCHbits.PWM2DCH1           /* bit 1 */
#define PWM2DCH2             PWM2DCHbits.PWM2DCH2           /* bit 2 */
#define PWM2DCH3             PWM2DCHbits.PWM2DCH3           /* bit 3 */
#define PWM2DCH4             PWM2DCHbits.PWM2DCH4           /* bit 4 */
#define PWM2DCH5             PWM2DCHbits.PWM2DCH5           /* bit 5 */
#define PWM2DCH6             PWM2DCHbits.PWM2DCH6           /* bit 6 */
#define PWM2DCH7             PWM2DCHbits.PWM2DCH7           /* bit 7 */

#define PWM2DCL0             PWM2DCLbits.PWM2DCL0           /* bit 6 */
#define PWM2DCL1             PWM2DCLbits.PWM2DCL1           /* bit 7 */

#define PWM3POL              PWM3CONbits.PWM3POL            /* bit 4, shadows bit in PWM3CON0bits */
#define PWM3OUT              PWM3CONbits.PWM3OUT            /* bit 5, shadows bit in PWM3CON0bits */
#define PWM3OE               PWM3CONbits.PWM3OE             /* bit 6, shadows bit in PWM3CON0bits */
#define PWM3EN               PWM3CONbits.PWM3EN             /* bit 7, shadows bit in PWM3CON0bits */

#define PWM3DCH0             PWM3DCHbits.PWM3DCH0           /* bit 0 */
#define PWM3DCH1             PWM3DCHbits.PWM3DCH1           /* bit 1 */
#define PWM3DCH2             PWM3DCHbits.PWM3DCH2           /* bit 2 */
#define PWM3DCH3             PWM3DCHbits.PWM3DCH3           /* bit 3 */
#define PWM3DCH4             PWM3DCHbits.PWM3DCH4           /* bit 4 */
#define PWM3DCH5             PWM3DCHbits.PWM3DCH5           /* bit 5 */
#define PWM3DCH6             PWM3DCHbits.PWM3DCH6           /* bit 6 */
#define PWM3DCH7             PWM3DCHbits.PWM3DCH7           /* bit 7 */

#define PWM3DCL0             PWM3DCLbits.PWM3DCL0           /* bit 6 */
#define PWM3DCL1             PWM3DCLbits.PWM3DCL1           /* bit 7 */

#define PWM4POL              PWM4CONbits.PWM4POL            /* bit 4, shadows bit in PWM4CON0bits */
#define PWM4OUT              PWM4CONbits.PWM4OUT            /* bit 5, shadows bit in PWM4CON0bits */
#define PWM4OE               PWM4CONbits.PWM4OE             /* bit 6, shadows bit in PWM4CON0bits */
#define PWM4EN               PWM4CONbits.PWM4EN             /* bit 7, shadows bit in PWM4CON0bits */

#define PWM4DCH0             PWM4DCHbits.PWM4DCH0           /* bit 0 */
#define PWM4DCH1             PWM4DCHbits.PWM4DCH1           /* bit 1 */
#define PWM4DCH2             PWM4DCHbits.PWM4DCH2           /* bit 2 */
#define PWM4DCH3             PWM4DCHbits.PWM4DCH3           /* bit 3 */
#define PWM4DCH4             PWM4DCHbits.PWM4DCH4           /* bit 4 */
#define PWM4DCH5             PWM4DCHbits.PWM4DCH5           /* bit 5 */
#define PWM4DCH6             PWM4DCHbits.PWM4DCH6           /* bit 6 */
#define PWM4DCH7             PWM4DCHbits.PWM4DCH7           /* bit 7 */

#define PWM4DCL0             PWM4DCLbits.PWM4DCL0           /* bit 6 */
#define PWM4DCL1             PWM4DCLbits.PWM4DCL1           /* bit 7 */

#define RX9D                 RCSTAbits.RX9D                 /* bit 0 */
#define OERR                 RCSTAbits.OERR                 /* bit 1 */
#define FERR                 RCSTAbits.FERR                 /* bit 2 */
#define ADDEN                RCSTAbits.ADDEN                /* bit 3 */
#define CREN                 RCSTAbits.CREN                 /* bit 4 */
#define SREN                 RCSTAbits.SREN                 /* bit 5 */
#define RX9                  RCSTAbits.RX9                  /* bit 6 */
#define SPEN                 RCSTAbits.SPEN                 /* bit 7 */

#define SSPM0                SSP1CON1bits.SSPM0             /* bit 0, shadows bit in SSPCONbits, SSPCON1bits */
#define SSPM1                SSP1CON1bits.SSPM1             /* bit 1, shadows bit in SSPCONbits, SSPCON1bits */
#define SSPM2                SSP1CON1bits.SSPM2             /* bit 2, shadows bit in SSPCONbits, SSPCON1bits */
#define SSPM3                SSP1CON1bits.SSPM3             /* bit 3, shadows bit in SSPCONbits, SSPCON1bits */
#define CKP                  SSP1CON1bits.CKP               /* bit 4, shadows bit in SSPCONbits, SSPCON1bits */
#define SSPEN                SSP1CON1bits.SSPEN             /* bit 5, shadows bit in SSPCONbits, SSPCON1bits */
#define SSPOV                SSP1CON1bits.SSPOV             /* bit 6, shadows bit in SSPCONbits, SSPCON1bits */
#define WCOL                 SSP1CON1bits.WCOL              /* bit 7, shadows bit in SSPCONbits, SSPCON1bits */

#define SEN                  SSP1CON2bits.SEN               /* bit 0, shadows bit in SSPCON2bits */
#define RSEN                 SSP1CON2bits.RSEN              /* bit 1, shadows bit in SSPCON2bits */
#define PEN                  SSP1CON2bits.PEN               /* bit 2, shadows bit in SSPCON2bits */
#define RCEN                 SSP1CON2bits.RCEN              /* bit 3, shadows bit in SSPCON2bits */
#define ACKEN                SSP1CON2bits.ACKEN             /* bit 4, shadows bit in SSPCON2bits */
#define ACKDT                SSP1CON2bits.ACKDT             /* bit 5, shadows bit in SSPCON2bits */
#define ACKSTAT              SSP1CON2bits.ACKSTAT           /* bit 6, shadows bit in SSPCON2bits */
#define GCEN                 SSP1CON2bits.GCEN              /* bit 7, shadows bit in SSPCON2bits */

#define DHEN                 SSP1CON3bits.DHEN              /* bit 0, shadows bit in SSPCON3bits */
#define AHEN                 SSP1CON3bits.AHEN              /* bit 1, shadows bit in SSPCON3bits */
#define SBCDE                SSP1CON3bits.SBCDE             /* bit 2, shadows bit in SSPCON3bits */
#define SDAHT                SSP1CON3bits.SDAHT             /* bit 3, shadows bit in SSPCON3bits */
#define BOEN                 SSP1CON3bits.BOEN              /* bit 4, shadows bit in SSPCON3bits */
#define SCIE                 SSP1CON3bits.SCIE              /* bit 5, shadows bit in SSPCON3bits */
#define PCIE                 SSP1CON3bits.PCIE              /* bit 6, shadows bit in SSPCON3bits */
#define ACKTIM               SSP1CON3bits.ACKTIM            /* bit 7, shadows bit in SSPCON3bits */

#define BF                   SSP1STATbits.BF                /* bit 0, shadows bit in SSPSTATbits */
#define UA                   SSP1STATbits.UA                /* bit 1, shadows bit in SSPSTATbits */
#define R_NOT_W              SSP1STATbits.R_NOT_W           /* bit 2, shadows bit in SSPSTATbits */
#define S                    SSP1STATbits.S                 /* bit 3, shadows bit in SSPSTATbits */
#define P                    SSP1STATbits.P                 /* bit 4, shadows bit in SSPSTATbits */
#define D_NOT_A              SSP1STATbits.D_NOT_A           /* bit 5, shadows bit in SSPSTATbits */
#define CKE                  SSP1STATbits.CKE               /* bit 6, shadows bit in SSPSTATbits */
#define SMP                  SSP1STATbits.SMP               /* bit 7, shadows bit in SSPSTATbits */

#define C_SHAD               STATUS_SHADbits.C_SHAD         /* bit 0 */
#define DC_SHAD              STATUS_SHADbits.DC_SHAD        /* bit 1 */
#define Z_SHAD               STATUS_SHADbits.Z_SHAD         /* bit 2 */

#define C                    STATUSbits.C                   /* bit 0 */
#define DC                   STATUSbits.DC                  /* bit 1 */
#define Z                    STATUSbits.Z                   /* bit 2 */
#define NOT_PD               STATUSbits.NOT_PD              /* bit 3 */
#define NOT_TO               STATUSbits.NOT_TO              /* bit 4 */

#define TMR1ON               T1CONbits.TMR1ON               /* bit 0 */
#define NOT_T1SYNC           T1CONbits.NOT_T1SYNC           /* bit 2 */
#define T1OSCEN              T1CONbits.T1OSCEN              /* bit 3 */
#define T1CKPS0              T1CONbits.T1CKPS0              /* bit 4 */
#define T1CKPS1              T1CONbits.T1CKPS1              /* bit 5 */
#define TMR1CS0              T1CONbits.TMR1CS0              /* bit 6 */
#define TMR1CS1              T1CONbits.TMR1CS1              /* bit 7 */

#define T1GSS0               T1GCONbits.T1GSS0              /* bit 0 */
#define T1GSS1               T1GCONbits.T1GSS1              /* bit 1 */
#define T1GVAL               T1GCONbits.T1GVAL              /* bit 2 */
#define T1GGO_NOT_DONE       T1GCONbits.T1GGO_NOT_DONE      /* bit 3 */
#define T1GSPM               T1GCONbits.T1GSPM              /* bit 4 */
#define T1GTM                T1GCONbits.T1GTM               /* bit 5 */
#define T1GPOL               T1GCONbits.T1GPOL              /* bit 6 */
#define TMR1GE               T1GCONbits.TMR1GE              /* bit 7 */

#define T2CKPS0              T2CONbits.T2CKPS0              /* bit 0 */
#define T2CKPS1              T2CONbits.T2CKPS1              /* bit 1 */
#define TMR2ON               T2CONbits.TMR2ON               /* bit 2 */
#define T2OUTPS0             T2CONbits.T2OUTPS0             /* bit 3 */
#define T2OUTPS1             T2CONbits.T2OUTPS1             /* bit 4 */
#define T2OUTPS2             T2CONbits.T2OUTPS2             /* bit 5 */
#define T2OUTPS3             T2CONbits.T2OUTPS3             /* bit 6 */

#define TRISA0               TRISAbits.TRISA0               /* bit 0 */
#define TRISA1               TRISAbits.TRISA1               /* bit 1 */
#define TRISA2               TRISAbits.TRISA2               /* bit 2 */
#define TRISA3               TRISAbits.TRISA3               /* bit 3 */
#define TRISA4               TRISAbits.TRISA4               /* bit 4 */
#define TRISA5               TRISAbits.TRISA5               /* bit 5 */

#define TRISB4               TRISBbits.TRISB4               /* bit 4 */
#define TRISB5               TRISBbits.TRISB5               /* bit 5 */
#define TRISB6               TRISBbits.TRISB6               /* bit 6 */
#define TRISB7               TRISBbits.TRISB7               /* bit 7 */

#define TRISC0               TRISCbits.TRISC0               /* bit 0 */
#define TRISC1               TRISCbits.TRISC1               /* bit 1 */
#define TRISC2               TRISCbits.TRISC2               /* bit 2 */
#define TRISC3               TRISCbits.TRISC3               /* bit 3 */
#define TRISC4               TRISCbits.TRISC4               /* bit 4 */
#define TRISC5               TRISCbits.TRISC5               /* bit 5 */
#define TRISC6               TRISCbits.TRISC6               /* bit 6 */
#define TRISC7               TRISCbits.TRISC7               /* bit 7 */

#define TX9D                 TXSTAbits.TX9D                 /* bit 0 */
#define TRMT                 TXSTAbits.TRMT                 /* bit 1 */
#define BRGH                 TXSTAbits.BRGH                 /* bit 2 */
#define SENDB                TXSTAbits.SENDB                /* bit 3 */
#define SYNC                 TXSTAbits.SYNC                 /* bit 4 */
#define TXEN                 TXSTAbits.TXEN                 /* bit 5 */
#define TX9                  TXSTAbits.TX9                  /* bit 6 */
#define CSRC                 TXSTAbits.CSRC                 /* bit 7 */

#define Reserved             VREGCONbits.Reserved           /* bit 0 */
#define VREGPM               VREGCONbits.VREGPM             /* bit 1 */

#define SWDTEN               WDTCONbits.SWDTEN              /* bit 0 */
#define WDTPS0               WDTCONbits.WDTPS0              /* bit 1 */
#define WDTPS1               WDTCONbits.WDTPS1              /* bit 2 */
#define WDTPS2               WDTCONbits.WDTPS2              /* bit 3 */
#define WDTPS3               WDTCONbits.WDTPS3              /* bit 4 */
#define WDTPS4               WDTCONbits.WDTPS4              /* bit 5 */

#define WPUA0                WPUAbits.WPUA0                 /* bit 0 */
#define WPUA1                WPUAbits.WPUA1                 /* bit 1 */
#define WPUA2                WPUAbits.WPUA2                 /* bit 2 */
#define WPUA3                WPUAbits.WPUA3                 /* bit 3 */
#define WPUA4                WPUAbits.WPUA4                 /* bit 4 */
#define WPUA5                WPUAbits.WPUA5                 /* bit 5 */

#define WPUB4                WPUBbits.WPUB4                 /* bit 4 */
#define WPUB5                WPUBbits.WPUB5                 /* bit 5 */
#define WPUB6                WPUBbits.WPUB6                 /* bit 6 */
#define WPUB7                WPUBbits.WPUB7                 /* bit 7 */
#endif /* NO_BIT_DEFINES */

#endif
