blob: f66255f28507ac9c4233e66ea8ea4668b7359610 [file] [log] [blame]
/*-------------------------------------------------------------------------
* PIC32MX470F512H processor header
* Build date : Feb 18 2016
*
* Copyright (c) 2016, Microchip Technology Inc. and its subsidiaries ("Microchip")
* All rights reserved.
*
* This software is developed by Microchip Technology Inc. and its
* subsidiaries ("Microchip").
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* 3. Microchip's name may not be used to endorse or promote products
* derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY MICROCHIP "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL MICROCHIP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWSOEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#pragma once
#ifndef __32MX470F512H_H
#define __32MX470F512H_H
#if defined (__LANGUAGE_C__) || defined (__LANGUAGE_C_PLUS_PLUS)
#ifdef __cplusplus
extern "C" {
#endif
#define WDTCON WDTCON
extern volatile unsigned int WDTCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned WDTCLR:1;
unsigned WDTWINEN:1;
unsigned SWDTPS:5;
unsigned :8;
unsigned ON:1;
};
struct {
unsigned :2;
unsigned SWDTPS0:1;
unsigned SWDTPS1:1;
unsigned SWDTPS2:1;
unsigned SWDTPS3:1;
unsigned SWDTPS4:1;
};
struct {
unsigned :2;
unsigned WDTPSTA:5;
};
struct {
unsigned :2;
unsigned WDTPS:5;
};
struct {
unsigned w:32;
};
} __WDTCONbits_t;
extern volatile __WDTCONbits_t WDTCONbits __asm__ ("WDTCON") __attribute__((section("sfrs")));
extern volatile unsigned int WDTCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int WDTCONSET __attribute__((section("sfrs")));
extern volatile unsigned int WDTCONINV __attribute__((section("sfrs")));
#define RTCCON RTCCON
extern volatile unsigned int RTCCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned RTCOE:1;
unsigned HALFSEC:1;
unsigned RTCSYNC:1;
unsigned RTCWREN:1;
unsigned :2;
unsigned RTCCLKON:1;
unsigned RTSECSEL:1;
unsigned :5;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
unsigned CAL:10;
};
struct {
unsigned w:32;
};
} __RTCCONbits_t;
extern volatile __RTCCONbits_t RTCCONbits __asm__ ("RTCCON") __attribute__((section("sfrs")));
extern volatile unsigned int RTCCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int RTCCONSET __attribute__((section("sfrs")));
extern volatile unsigned int RTCCONINV __attribute__((section("sfrs")));
#define RTCALRM RTCALRM
extern volatile unsigned int RTCALRM __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ARPT:8;
unsigned AMASK:4;
unsigned ALRMSYNC:1;
unsigned PIV:1;
unsigned CHIME:1;
unsigned ALRMEN:1;
};
struct {
unsigned w:32;
};
} __RTCALRMbits_t;
extern volatile __RTCALRMbits_t RTCALRMbits __asm__ ("RTCALRM") __attribute__((section("sfrs")));
extern volatile unsigned int RTCALRMCLR __attribute__((section("sfrs")));
extern volatile unsigned int RTCALRMSET __attribute__((section("sfrs")));
extern volatile unsigned int RTCALRMINV __attribute__((section("sfrs")));
#define RTCTIME RTCTIME
extern volatile unsigned int RTCTIME __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :8;
unsigned SEC01:4;
unsigned SEC10:4;
unsigned MIN01:4;
unsigned MIN10:4;
unsigned HR01:4;
unsigned HR10:4;
};
struct {
unsigned w:32;
};
} __RTCTIMEbits_t;
extern volatile __RTCTIMEbits_t RTCTIMEbits __asm__ ("RTCTIME") __attribute__((section("sfrs")));
extern volatile unsigned int RTCTIMECLR __attribute__((section("sfrs")));
extern volatile unsigned int RTCTIMESET __attribute__((section("sfrs")));
extern volatile unsigned int RTCTIMEINV __attribute__((section("sfrs")));
#define RTCDATE RTCDATE
extern volatile unsigned int RTCDATE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned WDAY01:4;
unsigned :4;
unsigned DAY01:4;
unsigned DAY10:4;
unsigned MONTH01:4;
unsigned MONTH10:4;
unsigned YEAR01:4;
unsigned YEAR10:4;
};
struct {
unsigned w:32;
};
} __RTCDATEbits_t;
extern volatile __RTCDATEbits_t RTCDATEbits __asm__ ("RTCDATE") __attribute__((section("sfrs")));
extern volatile unsigned int RTCDATECLR __attribute__((section("sfrs")));
extern volatile unsigned int RTCDATESET __attribute__((section("sfrs")));
extern volatile unsigned int RTCDATEINV __attribute__((section("sfrs")));
#define ALRMTIME ALRMTIME
extern volatile unsigned int ALRMTIME __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :8;
unsigned SEC01:4;
unsigned SEC10:4;
unsigned MIN01:4;
unsigned MIN10:4;
unsigned HR01:4;
unsigned HR10:4;
};
struct {
unsigned w:32;
};
} __ALRMTIMEbits_t;
extern volatile __ALRMTIMEbits_t ALRMTIMEbits __asm__ ("ALRMTIME") __attribute__((section("sfrs")));
extern volatile unsigned int ALRMTIMECLR __attribute__((section("sfrs")));
extern volatile unsigned int ALRMTIMESET __attribute__((section("sfrs")));
extern volatile unsigned int ALRMTIMEINV __attribute__((section("sfrs")));
#define ALRMDATE ALRMDATE
extern volatile unsigned int ALRMDATE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned WDAY01:4;
unsigned :4;
unsigned DAY01:4;
unsigned DAY10:4;
unsigned MONTH01:4;
unsigned MONTH10:4;
};
struct {
unsigned w:32;
};
} __ALRMDATEbits_t;
extern volatile __ALRMDATEbits_t ALRMDATEbits __asm__ ("ALRMDATE") __attribute__((section("sfrs")));
extern volatile unsigned int ALRMDATECLR __attribute__((section("sfrs")));
extern volatile unsigned int ALRMDATESET __attribute__((section("sfrs")));
extern volatile unsigned int ALRMDATEINV __attribute__((section("sfrs")));
#define T1CON T1CON
extern volatile unsigned int T1CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned TCS:1;
unsigned TSYNC:1;
unsigned :1;
unsigned TCKPS:2;
unsigned :1;
unsigned TGATE:1;
unsigned :3;
unsigned TWIP:1;
unsigned TWDIS:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :4;
unsigned TCKPS0:1;
unsigned TCKPS1:1;
};
struct {
unsigned :13;
unsigned TSIDL:1;
unsigned :1;
unsigned TON:1;
};
struct {
unsigned w:32;
};
} __T1CONbits_t;
extern volatile __T1CONbits_t T1CONbits __asm__ ("T1CON") __attribute__((section("sfrs")));
extern volatile unsigned int T1CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int T1CONSET __attribute__((section("sfrs")));
extern volatile unsigned int T1CONINV __attribute__((section("sfrs")));
#define TMR1 TMR1
extern volatile unsigned int TMR1 __attribute__((section("sfrs")));
extern volatile unsigned int TMR1CLR __attribute__((section("sfrs")));
extern volatile unsigned int TMR1SET __attribute__((section("sfrs")));
extern volatile unsigned int TMR1INV __attribute__((section("sfrs")));
#define PR1 PR1
extern volatile unsigned int PR1 __attribute__((section("sfrs")));
extern volatile unsigned int PR1CLR __attribute__((section("sfrs")));
extern volatile unsigned int PR1SET __attribute__((section("sfrs")));
extern volatile unsigned int PR1INV __attribute__((section("sfrs")));
#define T2CON T2CON
extern volatile unsigned int T2CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned TCS:1;
unsigned :1;
unsigned T32:1;
unsigned TCKPS:3;
unsigned TGATE:1;
unsigned :5;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :4;
unsigned TCKPS0:1;
unsigned TCKPS1:1;
unsigned TCKPS2:1;
};
struct {
unsigned :13;
unsigned TSIDL:1;
unsigned :1;
unsigned TON:1;
};
struct {
unsigned w:32;
};
} __T2CONbits_t;
extern volatile __T2CONbits_t T2CONbits __asm__ ("T2CON") __attribute__((section("sfrs")));
extern volatile unsigned int T2CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int T2CONSET __attribute__((section("sfrs")));
extern volatile unsigned int T2CONINV __attribute__((section("sfrs")));
#define TMR2 TMR2
extern volatile unsigned int TMR2 __attribute__((section("sfrs")));
extern volatile unsigned int TMR2CLR __attribute__((section("sfrs")));
extern volatile unsigned int TMR2SET __attribute__((section("sfrs")));
extern volatile unsigned int TMR2INV __attribute__((section("sfrs")));
#define PR2 PR2
extern volatile unsigned int PR2 __attribute__((section("sfrs")));
extern volatile unsigned int PR2CLR __attribute__((section("sfrs")));
extern volatile unsigned int PR2SET __attribute__((section("sfrs")));
extern volatile unsigned int PR2INV __attribute__((section("sfrs")));
#define T3CON T3CON
extern volatile unsigned int T3CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned TCS:1;
unsigned :2;
unsigned TCKPS:3;
unsigned TGATE:1;
unsigned :5;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :4;
unsigned TCKPS0:1;
unsigned TCKPS1:1;
unsigned TCKPS2:1;
};
struct {
unsigned :13;
unsigned TSIDL:1;
unsigned :1;
unsigned TON:1;
};
struct {
unsigned w:32;
};
} __T3CONbits_t;
extern volatile __T3CONbits_t T3CONbits __asm__ ("T3CON") __attribute__((section("sfrs")));
extern volatile unsigned int T3CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int T3CONSET __attribute__((section("sfrs")));
extern volatile unsigned int T3CONINV __attribute__((section("sfrs")));
#define TMR3 TMR3
extern volatile unsigned int TMR3 __attribute__((section("sfrs")));
extern volatile unsigned int TMR3CLR __attribute__((section("sfrs")));
extern volatile unsigned int TMR3SET __attribute__((section("sfrs")));
extern volatile unsigned int TMR3INV __attribute__((section("sfrs")));
#define PR3 PR3
extern volatile unsigned int PR3 __attribute__((section("sfrs")));
extern volatile unsigned int PR3CLR __attribute__((section("sfrs")));
extern volatile unsigned int PR3SET __attribute__((section("sfrs")));
extern volatile unsigned int PR3INV __attribute__((section("sfrs")));
#define T4CON T4CON
extern volatile unsigned int T4CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned TCS:1;
unsigned :1;
unsigned T32:1;
unsigned TCKPS:3;
unsigned TGATE:1;
unsigned :5;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :4;
unsigned TCKPS0:1;
unsigned TCKPS1:1;
unsigned TCKPS2:1;
};
struct {
unsigned :13;
unsigned TSIDL:1;
unsigned :1;
unsigned TON:1;
};
struct {
unsigned w:32;
};
} __T4CONbits_t;
extern volatile __T4CONbits_t T4CONbits __asm__ ("T4CON") __attribute__((section("sfrs")));
extern volatile unsigned int T4CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int T4CONSET __attribute__((section("sfrs")));
extern volatile unsigned int T4CONINV __attribute__((section("sfrs")));
#define TMR4 TMR4
extern volatile unsigned int TMR4 __attribute__((section("sfrs")));
extern volatile unsigned int TMR4CLR __attribute__((section("sfrs")));
extern volatile unsigned int TMR4SET __attribute__((section("sfrs")));
extern volatile unsigned int TMR4INV __attribute__((section("sfrs")));
#define PR4 PR4
extern volatile unsigned int PR4 __attribute__((section("sfrs")));
extern volatile unsigned int PR4CLR __attribute__((section("sfrs")));
extern volatile unsigned int PR4SET __attribute__((section("sfrs")));
extern volatile unsigned int PR4INV __attribute__((section("sfrs")));
#define T5CON T5CON
extern volatile unsigned int T5CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned TCS:1;
unsigned :2;
unsigned TCKPS:3;
unsigned TGATE:1;
unsigned :5;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :4;
unsigned TCKPS0:1;
unsigned TCKPS1:1;
unsigned TCKPS2:1;
};
struct {
unsigned :13;
unsigned TSIDL:1;
unsigned :1;
unsigned TON:1;
};
struct {
unsigned w:32;
};
} __T5CONbits_t;
extern volatile __T5CONbits_t T5CONbits __asm__ ("T5CON") __attribute__((section("sfrs")));
extern volatile unsigned int T5CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int T5CONSET __attribute__((section("sfrs")));
extern volatile unsigned int T5CONINV __attribute__((section("sfrs")));
#define TMR5 TMR5
extern volatile unsigned int TMR5 __attribute__((section("sfrs")));
extern volatile unsigned int TMR5CLR __attribute__((section("sfrs")));
extern volatile unsigned int TMR5SET __attribute__((section("sfrs")));
extern volatile unsigned int TMR5INV __attribute__((section("sfrs")));
#define PR5 PR5
extern volatile unsigned int PR5 __attribute__((section("sfrs")));
extern volatile unsigned int PR5CLR __attribute__((section("sfrs")));
extern volatile unsigned int PR5SET __attribute__((section("sfrs")));
extern volatile unsigned int PR5INV __attribute__((section("sfrs")));
#define IC1CON IC1CON
extern volatile unsigned int IC1CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ICM:3;
unsigned ICBNE:1;
unsigned ICOV:1;
unsigned ICI:2;
unsigned ICTMR:1;
unsigned C32:1;
unsigned FEDGE:1;
unsigned :3;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned ICM0:1;
unsigned ICM1:1;
unsigned ICM2:1;
unsigned :2;
unsigned ICI0:1;
unsigned ICI1:1;
};
struct {
unsigned :13;
unsigned ICSIDL:1;
};
struct {
unsigned w:32;
};
} __IC1CONbits_t;
extern volatile __IC1CONbits_t IC1CONbits __asm__ ("IC1CON") __attribute__((section("sfrs")));
extern volatile unsigned int IC1CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int IC1CONSET __attribute__((section("sfrs")));
extern volatile unsigned int IC1CONINV __attribute__((section("sfrs")));
#define IC1BUF IC1BUF
extern volatile unsigned int IC1BUF __attribute__((section("sfrs")));
#define IC2CON IC2CON
extern volatile unsigned int IC2CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ICM:3;
unsigned ICBNE:1;
unsigned ICOV:1;
unsigned ICI:2;
unsigned ICTMR:1;
unsigned C32:1;
unsigned FEDGE:1;
unsigned :3;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned ICM0:1;
unsigned ICM1:1;
unsigned ICM2:1;
unsigned :2;
unsigned ICI0:1;
unsigned ICI1:1;
};
struct {
unsigned :13;
unsigned ICSIDL:1;
};
struct {
unsigned w:32;
};
} __IC2CONbits_t;
extern volatile __IC2CONbits_t IC2CONbits __asm__ ("IC2CON") __attribute__((section("sfrs")));
extern volatile unsigned int IC2CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int IC2CONSET __attribute__((section("sfrs")));
extern volatile unsigned int IC2CONINV __attribute__((section("sfrs")));
#define IC2BUF IC2BUF
extern volatile unsigned int IC2BUF __attribute__((section("sfrs")));
#define IC3CON IC3CON
extern volatile unsigned int IC3CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ICM:3;
unsigned ICBNE:1;
unsigned ICOV:1;
unsigned ICI:2;
unsigned ICTMR:1;
unsigned C32:1;
unsigned FEDGE:1;
unsigned :3;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned ICM0:1;
unsigned ICM1:1;
unsigned ICM2:1;
unsigned :2;
unsigned ICI0:1;
unsigned ICI1:1;
};
struct {
unsigned :13;
unsigned ICSIDL:1;
};
struct {
unsigned w:32;
};
} __IC3CONbits_t;
extern volatile __IC3CONbits_t IC3CONbits __asm__ ("IC3CON") __attribute__((section("sfrs")));
extern volatile unsigned int IC3CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int IC3CONSET __attribute__((section("sfrs")));
extern volatile unsigned int IC3CONINV __attribute__((section("sfrs")));
#define IC3BUF IC3BUF
extern volatile unsigned int IC3BUF __attribute__((section("sfrs")));
#define IC4CON IC4CON
extern volatile unsigned int IC4CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ICM:3;
unsigned ICBNE:1;
unsigned ICOV:1;
unsigned ICI:2;
unsigned ICTMR:1;
unsigned C32:1;
unsigned FEDGE:1;
unsigned :3;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned ICM0:1;
unsigned ICM1:1;
unsigned ICM2:1;
unsigned :2;
unsigned ICI0:1;
unsigned ICI1:1;
};
struct {
unsigned :13;
unsigned ICSIDL:1;
};
struct {
unsigned w:32;
};
} __IC4CONbits_t;
extern volatile __IC4CONbits_t IC4CONbits __asm__ ("IC4CON") __attribute__((section("sfrs")));
extern volatile unsigned int IC4CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int IC4CONSET __attribute__((section("sfrs")));
extern volatile unsigned int IC4CONINV __attribute__((section("sfrs")));
#define IC4BUF IC4BUF
extern volatile unsigned int IC4BUF __attribute__((section("sfrs")));
#define IC5CON IC5CON
extern volatile unsigned int IC5CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ICM:3;
unsigned ICBNE:1;
unsigned ICOV:1;
unsigned ICI:2;
unsigned ICTMR:1;
unsigned C32:1;
unsigned FEDGE:1;
unsigned :3;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned ICM0:1;
unsigned ICM1:1;
unsigned ICM2:1;
unsigned :2;
unsigned ICI0:1;
unsigned ICI1:1;
};
struct {
unsigned :13;
unsigned ICSIDL:1;
};
struct {
unsigned w:32;
};
} __IC5CONbits_t;
extern volatile __IC5CONbits_t IC5CONbits __asm__ ("IC5CON") __attribute__((section("sfrs")));
extern volatile unsigned int IC5CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int IC5CONSET __attribute__((section("sfrs")));
extern volatile unsigned int IC5CONINV __attribute__((section("sfrs")));
#define IC5BUF IC5BUF
extern volatile unsigned int IC5BUF __attribute__((section("sfrs")));
#define OC1CON OC1CON
extern volatile unsigned int OC1CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned OCM:3;
unsigned OCTSEL:1;
unsigned OCFLT:1;
unsigned OC32:1;
unsigned :7;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned OCM0:1;
unsigned OCM1:1;
unsigned OCM2:1;
};
struct {
unsigned :13;
unsigned OCSIDL:1;
};
struct {
unsigned w:32;
};
} __OC1CONbits_t;
extern volatile __OC1CONbits_t OC1CONbits __asm__ ("OC1CON") __attribute__((section("sfrs")));
extern volatile unsigned int OC1CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC1CONSET __attribute__((section("sfrs")));
extern volatile unsigned int OC1CONINV __attribute__((section("sfrs")));
#define OC1R OC1R
extern volatile unsigned int OC1R __attribute__((section("sfrs")));
extern volatile unsigned int OC1RCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC1RSET __attribute__((section("sfrs")));
extern volatile unsigned int OC1RINV __attribute__((section("sfrs")));
#define OC1RS OC1RS
extern volatile unsigned int OC1RS __attribute__((section("sfrs")));
extern volatile unsigned int OC1RSCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC1RSSET __attribute__((section("sfrs")));
extern volatile unsigned int OC1RSINV __attribute__((section("sfrs")));
#define OC2CON OC2CON
extern volatile unsigned int OC2CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned OCM:3;
unsigned OCTSEL:1;
unsigned OCFLT:1;
unsigned OC32:1;
unsigned :7;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned OCM0:1;
unsigned OCM1:1;
unsigned OCM2:1;
};
struct {
unsigned :13;
unsigned OCSIDL:1;
};
struct {
unsigned w:32;
};
} __OC2CONbits_t;
extern volatile __OC2CONbits_t OC2CONbits __asm__ ("OC2CON") __attribute__((section("sfrs")));
extern volatile unsigned int OC2CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC2CONSET __attribute__((section("sfrs")));
extern volatile unsigned int OC2CONINV __attribute__((section("sfrs")));
#define OC2R OC2R
extern volatile unsigned int OC2R __attribute__((section("sfrs")));
extern volatile unsigned int OC2RCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC2RSET __attribute__((section("sfrs")));
extern volatile unsigned int OC2RINV __attribute__((section("sfrs")));
#define OC2RS OC2RS
extern volatile unsigned int OC2RS __attribute__((section("sfrs")));
extern volatile unsigned int OC2RSCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC2RSSET __attribute__((section("sfrs")));
extern volatile unsigned int OC2RSINV __attribute__((section("sfrs")));
#define OC3CON OC3CON
extern volatile unsigned int OC3CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned OCM:3;
unsigned OCTSEL:1;
unsigned OCFLT:1;
unsigned OC32:1;
unsigned :7;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned OCM0:1;
unsigned OCM1:1;
unsigned OCM2:1;
};
struct {
unsigned :13;
unsigned OCSIDL:1;
};
struct {
unsigned w:32;
};
} __OC3CONbits_t;
extern volatile __OC3CONbits_t OC3CONbits __asm__ ("OC3CON") __attribute__((section("sfrs")));
extern volatile unsigned int OC3CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC3CONSET __attribute__((section("sfrs")));
extern volatile unsigned int OC3CONINV __attribute__((section("sfrs")));
#define OC3R OC3R
extern volatile unsigned int OC3R __attribute__((section("sfrs")));
extern volatile unsigned int OC3RCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC3RSET __attribute__((section("sfrs")));
extern volatile unsigned int OC3RINV __attribute__((section("sfrs")));
#define OC3RS OC3RS
extern volatile unsigned int OC3RS __attribute__((section("sfrs")));
extern volatile unsigned int OC3RSCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC3RSSET __attribute__((section("sfrs")));
extern volatile unsigned int OC3RSINV __attribute__((section("sfrs")));
#define OC4CON OC4CON
extern volatile unsigned int OC4CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned OCM:3;
unsigned OCTSEL:1;
unsigned OCFLT:1;
unsigned OC32:1;
unsigned :7;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned OCM0:1;
unsigned OCM1:1;
unsigned OCM2:1;
};
struct {
unsigned :13;
unsigned OCSIDL:1;
};
struct {
unsigned w:32;
};
} __OC4CONbits_t;
extern volatile __OC4CONbits_t OC4CONbits __asm__ ("OC4CON") __attribute__((section("sfrs")));
extern volatile unsigned int OC4CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC4CONSET __attribute__((section("sfrs")));
extern volatile unsigned int OC4CONINV __attribute__((section("sfrs")));
#define OC4R OC4R
extern volatile unsigned int OC4R __attribute__((section("sfrs")));
extern volatile unsigned int OC4RCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC4RSET __attribute__((section("sfrs")));
extern volatile unsigned int OC4RINV __attribute__((section("sfrs")));
#define OC4RS OC4RS
extern volatile unsigned int OC4RS __attribute__((section("sfrs")));
extern volatile unsigned int OC4RSCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC4RSSET __attribute__((section("sfrs")));
extern volatile unsigned int OC4RSINV __attribute__((section("sfrs")));
#define OC5CON OC5CON
extern volatile unsigned int OC5CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned OCM:3;
unsigned OCTSEL:1;
unsigned OCFLT:1;
unsigned OC32:1;
unsigned :7;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned OCM0:1;
unsigned OCM1:1;
unsigned OCM2:1;
};
struct {
unsigned :13;
unsigned OCSIDL:1;
};
struct {
unsigned w:32;
};
} __OC5CONbits_t;
extern volatile __OC5CONbits_t OC5CONbits __asm__ ("OC5CON") __attribute__((section("sfrs")));
extern volatile unsigned int OC5CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC5CONSET __attribute__((section("sfrs")));
extern volatile unsigned int OC5CONINV __attribute__((section("sfrs")));
#define OC5R OC5R
extern volatile unsigned int OC5R __attribute__((section("sfrs")));
extern volatile unsigned int OC5RCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC5RSET __attribute__((section("sfrs")));
extern volatile unsigned int OC5RINV __attribute__((section("sfrs")));
#define OC5RS OC5RS
extern volatile unsigned int OC5RS __attribute__((section("sfrs")));
extern volatile unsigned int OC5RSCLR __attribute__((section("sfrs")));
extern volatile unsigned int OC5RSSET __attribute__((section("sfrs")));
extern volatile unsigned int OC5RSINV __attribute__((section("sfrs")));
#define I2C1111CON I2C1111CON
extern volatile unsigned int I2C1111CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SEN:1;
unsigned RSEN:1;
unsigned PEN:1;
unsigned RCEN:1;
unsigned ACKEN:1;
unsigned ACKDT:1;
unsigned STREN:1;
unsigned GCEN:1;
unsigned SMEN:1;
unsigned DISSLW:1;
unsigned A10M:1;
unsigned STRICT:1;
unsigned SCLREL:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :11;
unsigned IPMIEN:1;
unsigned :1;
unsigned I2CSIDL:1;
unsigned :1;
unsigned I2CEN:1;
};
struct {
unsigned w:32;
};
} __I2C1111CONbits_t;
extern volatile __I2C1111CONbits_t I2C1111CONbits __asm__ ("I2C1111CON") __attribute__((section("sfrs")));
#define I2C1CON I2C1CON
extern volatile unsigned int I2C1CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SEN:1;
unsigned RSEN:1;
unsigned PEN:1;
unsigned RCEN:1;
unsigned ACKEN:1;
unsigned ACKDT:1;
unsigned STREN:1;
unsigned GCEN:1;
unsigned SMEN:1;
unsigned DISSLW:1;
unsigned A10M:1;
unsigned STRICT:1;
unsigned SCLREL:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :11;
unsigned IPMIEN:1;
unsigned :1;
unsigned I2CSIDL:1;
unsigned :1;
unsigned I2CEN:1;
};
struct {
unsigned w:32;
};
} __I2C1CONbits_t;
extern volatile __I2C1CONbits_t I2C1CONbits __asm__ ("I2C1CON") __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111CONSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1CONSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111CONINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1CONINV __attribute__((section("sfrs")));
#define I2C1111STAT I2C1111STAT
extern volatile unsigned int I2C1111STAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TBF:1;
unsigned RBF:1;
unsigned R_W:1;
unsigned S:1;
unsigned P:1;
unsigned D_A:1;
unsigned I2COV:1;
unsigned IWCOL:1;
unsigned ADD10:1;
unsigned GCSTAT:1;
unsigned BCL:1;
unsigned :3;
unsigned TRSTAT:1;
unsigned ACKSTAT:1;
};
struct {
unsigned :6;
unsigned I2CPOV:1;
};
struct {
unsigned w:32;
};
} __I2C1111STATbits_t;
extern volatile __I2C1111STATbits_t I2C1111STATbits __asm__ ("I2C1111STAT") __attribute__((section("sfrs")));
#define I2C1STAT I2C1STAT
extern volatile unsigned int I2C1STAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TBF:1;
unsigned RBF:1;
unsigned R_W:1;
unsigned S:1;
unsigned P:1;
unsigned D_A:1;
unsigned I2COV:1;
unsigned IWCOL:1;
unsigned ADD10:1;
unsigned GCSTAT:1;
unsigned BCL:1;
unsigned :3;
unsigned TRSTAT:1;
unsigned ACKSTAT:1;
};
struct {
unsigned :6;
unsigned I2CPOV:1;
};
struct {
unsigned w:32;
};
} __I2C1STATbits_t;
extern volatile __I2C1STATbits_t I2C1STATbits __asm__ ("I2C1STAT") __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111STATCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1STATCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111STATSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1STATSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111STATINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1STATINV __attribute__((section("sfrs")));
#define I2C1111ADD I2C1111ADD
extern volatile unsigned int I2C1111ADD __attribute__((section("sfrs")));
#define I2C1ADD I2C1ADD
extern volatile unsigned int I2C1ADD __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111ADDCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1ADDCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111ADDSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1ADDSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111ADDINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1ADDINV __attribute__((section("sfrs")));
#define I2C1111MSK I2C1111MSK
extern volatile unsigned int I2C1111MSK __attribute__((section("sfrs")));
#define I2C1MSK I2C1MSK
extern volatile unsigned int I2C1MSK __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111MSKCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1MSKCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111MSKSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1MSKSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111MSKINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1MSKINV __attribute__((section("sfrs")));
#define I2C1111BRG I2C1111BRG
extern volatile unsigned int I2C1111BRG __attribute__((section("sfrs")));
#define I2C1BRG I2C1BRG
extern volatile unsigned int I2C1BRG __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111BRGINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1BRGINV __attribute__((section("sfrs")));
#define I2C1111TRN I2C1111TRN
extern volatile unsigned int I2C1111TRN __attribute__((section("sfrs")));
#define I2C1TRN I2C1TRN
extern volatile unsigned int I2C1TRN __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111TRNCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1TRNCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111TRNSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1TRNSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1111TRNINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1TRNINV __attribute__((section("sfrs")));
#define I2C1111RCV I2C1111RCV
extern volatile unsigned int I2C1111RCV __attribute__((section("sfrs")));
#define I2C1RCV I2C1RCV
extern volatile unsigned int I2C1RCV __attribute__((section("sfrs")));
#define I2C2CON I2C2CON
extern volatile unsigned int I2C2CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SEN:1;
unsigned RSEN:1;
unsigned PEN:1;
unsigned RCEN:1;
unsigned ACKEN:1;
unsigned ACKDT:1;
unsigned STREN:1;
unsigned GCEN:1;
unsigned SMEN:1;
unsigned DISSLW:1;
unsigned A10M:1;
unsigned STRICT:1;
unsigned SCLREL:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :11;
unsigned IPMIEN:1;
unsigned :1;
unsigned I2CSIDL:1;
unsigned :1;
unsigned I2CEN:1;
};
struct {
unsigned w:32;
};
} __I2C2CONbits_t;
extern volatile __I2C2CONbits_t I2C2CONbits __asm__ ("I2C2CON") __attribute__((section("sfrs")));
#define I2CABCON I2CABCON
extern volatile unsigned int I2CABCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SEN:1;
unsigned RSEN:1;
unsigned PEN:1;
unsigned RCEN:1;
unsigned ACKEN:1;
unsigned ACKDT:1;
unsigned STREN:1;
unsigned GCEN:1;
unsigned SMEN:1;
unsigned DISSLW:1;
unsigned A10M:1;
unsigned STRICT:1;
unsigned SCLREL:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :11;
unsigned IPMIEN:1;
unsigned :1;
unsigned I2CSIDL:1;
unsigned :1;
unsigned I2CEN:1;
};
struct {
unsigned w:32;
};
} __I2CABCONbits_t;
extern volatile __I2CABCONbits_t I2CABCONbits __asm__ ("I2CABCON") __attribute__((section("sfrs")));
extern volatile unsigned int I2C2CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2CABCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2CONSET __attribute__((section("sfrs")));
extern volatile unsigned int I2CABCONSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2CONINV __attribute__((section("sfrs")));
extern volatile unsigned int I2CABCONINV __attribute__((section("sfrs")));
#define I2C2STAT I2C2STAT
extern volatile unsigned int I2C2STAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TBF:1;
unsigned RBF:1;
unsigned R_W:1;
unsigned S:1;
unsigned P:1;
unsigned D_A:1;
unsigned I2COV:1;
unsigned IWCOL:1;
unsigned ADD10:1;
unsigned GCSTAT:1;
unsigned BCL:1;
unsigned :3;
unsigned TRSTAT:1;
unsigned ACKSTAT:1;
};
struct {
unsigned :6;
unsigned I2CPOV:1;
};
struct {
unsigned w:32;
};
} __I2C2STATbits_t;
extern volatile __I2C2STATbits_t I2C2STATbits __asm__ ("I2C2STAT") __attribute__((section("sfrs")));
#define I2CABSTAT I2CABSTAT
extern volatile unsigned int I2CABSTAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TBF:1;
unsigned RBF:1;
unsigned R_W:1;
unsigned S:1;
unsigned P:1;
unsigned D_A:1;
unsigned I2COV:1;
unsigned IWCOL:1;
unsigned ADD10:1;
unsigned GCSTAT:1;
unsigned BCL:1;
unsigned :3;
unsigned TRSTAT:1;
unsigned ACKSTAT:1;
};
struct {
unsigned :6;
unsigned I2CPOV:1;
};
struct {
unsigned w:32;
};
} __I2CABSTATbits_t;
extern volatile __I2CABSTATbits_t I2CABSTATbits __asm__ ("I2CABSTAT") __attribute__((section("sfrs")));
extern volatile unsigned int I2C2STATCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2CABSTATCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2STATSET __attribute__((section("sfrs")));
extern volatile unsigned int I2CABSTATSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2STATINV __attribute__((section("sfrs")));
extern volatile unsigned int I2CABSTATINV __attribute__((section("sfrs")));
#define I2C2ADD I2C2ADD
extern volatile unsigned int I2C2ADD __attribute__((section("sfrs")));
#define I2CABADD I2CABADD
extern volatile unsigned int I2CABADD __attribute__((section("sfrs")));
extern volatile unsigned int I2C2ADDCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2CABADDCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2ADDSET __attribute__((section("sfrs")));
extern volatile unsigned int I2CABADDSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2ADDINV __attribute__((section("sfrs")));
extern volatile unsigned int I2CABADDINV __attribute__((section("sfrs")));
#define I2C2MSK I2C2MSK
extern volatile unsigned int I2C2MSK __attribute__((section("sfrs")));
#define I2CABMSK I2CABMSK
extern volatile unsigned int I2CABMSK __attribute__((section("sfrs")));
extern volatile unsigned int I2C2MSKCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2CABMSKCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2MSKSET __attribute__((section("sfrs")));
extern volatile unsigned int I2CABMSKSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2MSKINV __attribute__((section("sfrs")));
extern volatile unsigned int I2CABMSKINV __attribute__((section("sfrs")));
#define I2C2BRG I2C2BRG
extern volatile unsigned int I2C2BRG __attribute__((section("sfrs")));
#define I2CABBRG I2CABBRG
extern volatile unsigned int I2CABBRG __attribute__((section("sfrs")));
extern volatile unsigned int I2C2BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2CABBRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int I2CABBRGSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2BRGINV __attribute__((section("sfrs")));
extern volatile unsigned int I2CABBRGINV __attribute__((section("sfrs")));
#define I2C2TRN I2C2TRN
extern volatile unsigned int I2C2TRN __attribute__((section("sfrs")));
#define I2CABTRN I2CABTRN
extern volatile unsigned int I2CABTRN __attribute__((section("sfrs")));
extern volatile unsigned int I2C2TRNCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2CABTRNCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2TRNSET __attribute__((section("sfrs")));
extern volatile unsigned int I2CABTRNSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2TRNINV __attribute__((section("sfrs")));
extern volatile unsigned int I2CABTRNINV __attribute__((section("sfrs")));
#define I2C2RCV I2C2RCV
extern volatile unsigned int I2C2RCV __attribute__((section("sfrs")));
#define I2CABRCV I2CABRCV
extern volatile unsigned int I2CABRCV __attribute__((section("sfrs")));
#define SPI1CON SPI1CON
extern volatile unsigned int SPI1CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SRXISEL:2;
unsigned STXISEL:2;
unsigned DISSDI:1;
unsigned MSTEN:1;
unsigned CKP:1;
unsigned SSEN:1;
unsigned CKE:1;
unsigned SMP:1;
unsigned MODE16:1;
unsigned MODE32:1;
unsigned DISSDO:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
unsigned ENHBUF:1;
unsigned SPIFE:1;
unsigned :5;
unsigned MCLKSEL:1;
unsigned FRMCNT:3;
unsigned FRMSYPW:1;
unsigned MSSEN:1;
unsigned FRMPOL:1;
unsigned FRMSYNC:1;
unsigned FRMEN:1;
};
struct {
unsigned w:32;
};
} __SPI1CONbits_t;
extern volatile __SPI1CONbits_t SPI1CONbits __asm__ ("SPI1CON") __attribute__((section("sfrs")));
extern volatile unsigned int SPI1CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int SPI1CONSET __attribute__((section("sfrs")));
extern volatile unsigned int SPI1CONINV __attribute__((section("sfrs")));
#define SPI1STAT SPI1STAT
extern volatile unsigned int SPI1STAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SPIRBF:1;
unsigned SPITBF:1;
unsigned :1;
unsigned SPITBE:1;
unsigned :1;
unsigned SPIRBE:1;
unsigned SPIROV:1;
unsigned SRMT:1;
unsigned SPITUR:1;
unsigned :2;
unsigned SPIBUSY:1;
unsigned FRMERR:1;
unsigned :3;
unsigned TXBUFELM:5;
unsigned :3;
unsigned RXBUFELM:5;
};
struct {
unsigned w:32;
};
} __SPI1STATbits_t;
extern volatile __SPI1STATbits_t SPI1STATbits __asm__ ("SPI1STAT") __attribute__((section("sfrs")));
extern volatile unsigned int SPI1STATCLR __attribute__((section("sfrs")));
extern volatile unsigned int SPI1STATSET __attribute__((section("sfrs")));
extern volatile unsigned int SPI1STATINV __attribute__((section("sfrs")));
#define SPI1BUF SPI1BUF
extern volatile unsigned int SPI1BUF __attribute__((section("sfrs")));
#define SPI1BRG SPI1BRG
extern volatile unsigned int SPI1BRG __attribute__((section("sfrs")));
extern volatile unsigned int SPI1BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int SPI1BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int SPI1BRGINV __attribute__((section("sfrs")));
#define SPI1CON2 SPI1CON2
extern volatile unsigned int SPI1CON2 __attribute__((section("sfrs")));
typedef union {
struct {
unsigned AUDMOD:2;
unsigned :1;
unsigned AUDMONO:1;
unsigned :3;
unsigned AUDEN:1;
unsigned IGNTUR:1;
unsigned IGNROV:1;
unsigned SPITUREN:1;
unsigned SPIROVEN:1;
unsigned FRMERREN:1;
unsigned :2;
unsigned SPISGNEXT:1;
};
struct {
unsigned AUDMOD0:1;
unsigned AUDMOD1:1;
};
struct {
unsigned w:32;
};
} __SPI1CON2bits_t;
extern volatile __SPI1CON2bits_t SPI1CON2bits __asm__ ("SPI1CON2") __attribute__((section("sfrs")));
extern volatile unsigned int SPI1CON2CLR __attribute__((section("sfrs")));
extern volatile unsigned int SPI1CON2SET __attribute__((section("sfrs")));
extern volatile unsigned int SPI1CON2INV __attribute__((section("sfrs")));
#define SPI2CON SPI2CON
extern volatile unsigned int SPI2CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SRXISEL:2;
unsigned STXISEL:2;
unsigned DISSDI:1;
unsigned MSTEN:1;
unsigned CKP:1;
unsigned SSEN:1;
unsigned CKE:1;
unsigned SMP:1;
unsigned MODE16:1;
unsigned MODE32:1;
unsigned DISSDO:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
unsigned ENHBUF:1;
unsigned SPIFE:1;
unsigned :5;
unsigned MCLKSEL:1;
unsigned FRMCNT:3;
unsigned FRMSYPW:1;
unsigned MSSEN:1;
unsigned FRMPOL:1;
unsigned FRMSYNC:1;
unsigned FRMEN:1;
};
struct {
unsigned w:32;
};
} __SPI2CONbits_t;
extern volatile __SPI2CONbits_t SPI2CONbits __asm__ ("SPI2CON") __attribute__((section("sfrs")));
extern volatile unsigned int SPI2CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int SPI2CONSET __attribute__((section("sfrs")));
extern volatile unsigned int SPI2CONINV __attribute__((section("sfrs")));
#define SPI2STAT SPI2STAT
extern volatile unsigned int SPI2STAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SPIRBF:1;
unsigned SPITBF:1;
unsigned :1;
unsigned SPITBE:1;
unsigned :1;
unsigned SPIRBE:1;
unsigned SPIROV:1;
unsigned SRMT:1;
unsigned SPITUR:1;
unsigned :2;
unsigned SPIBUSY:1;
unsigned FRMERR:1;
unsigned :3;
unsigned TXBUFELM:5;
unsigned :3;
unsigned RXBUFELM:5;
};
struct {
unsigned w:32;
};
} __SPI2STATbits_t;
extern volatile __SPI2STATbits_t SPI2STATbits __asm__ ("SPI2STAT") __attribute__((section("sfrs")));
extern volatile unsigned int SPI2STATCLR __attribute__((section("sfrs")));
extern volatile unsigned int SPI2STATSET __attribute__((section("sfrs")));
extern volatile unsigned int SPI2STATINV __attribute__((section("sfrs")));
#define SPI2BUF SPI2BUF
extern volatile unsigned int SPI2BUF __attribute__((section("sfrs")));
#define SPI2BRG SPI2BRG
extern volatile unsigned int SPI2BRG __attribute__((section("sfrs")));
extern volatile unsigned int SPI2BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int SPI2BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int SPI2BRGINV __attribute__((section("sfrs")));
#define SPI2CON2 SPI2CON2
extern volatile unsigned int SPI2CON2 __attribute__((section("sfrs")));
typedef union {
struct {
unsigned AUDMOD:2;
unsigned :1;
unsigned AUDMONO:1;
unsigned :3;
unsigned AUDEN:1;
unsigned IGNTUR:1;
unsigned IGNROV:1;
unsigned SPITUREN:1;
unsigned SPIROVEN:1;
unsigned FRMERREN:1;
unsigned :2;
unsigned SPISGNEXT:1;
};
struct {
unsigned AUDMOD0:1;
unsigned AUDMOD1:1;
};
struct {
unsigned w:32;
};
} __SPI2CON2bits_t;
extern volatile __SPI2CON2bits_t SPI2CON2bits __asm__ ("SPI2CON2") __attribute__((section("sfrs")));
extern volatile unsigned int SPI2CON2CLR __attribute__((section("sfrs")));
extern volatile unsigned int SPI2CON2SET __attribute__((section("sfrs")));
extern volatile unsigned int SPI2CON2INV __attribute__((section("sfrs")));
#define U1MODE U1MODE
extern volatile unsigned int U1MODE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned STSEL:1;
unsigned PDSEL:2;
unsigned BRGH:1;
unsigned RXINV:1;
unsigned ABAUD:1;
unsigned LPBACK:1;
unsigned WAKE:1;
unsigned UEN:2;
unsigned :1;
unsigned RTSMD:1;
unsigned IREN:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :1;
unsigned PDSEL0:1;
unsigned PDSEL1:1;
unsigned :5;
unsigned UEN0:1;
unsigned UEN1:1;
};
struct {
unsigned :13;
unsigned USIDL:1;
unsigned :1;
unsigned UARTEN:1;
};
struct {
unsigned w:32;
};
} __U1MODEbits_t;
extern volatile __U1MODEbits_t U1MODEbits __asm__ ("U1MODE") __attribute__((section("sfrs")));
#define UDCMODE UDCMODE
extern volatile unsigned int UDCMODE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned STSEL:1;
unsigned PDSEL:2;
unsigned BRGH:1;
unsigned RXINV:1;
unsigned ABAUD:1;
unsigned LPBACK:1;
unsigned WAKE:1;
unsigned UEN:2;
unsigned :1;
unsigned RTSMD:1;
unsigned IREN:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :1;
unsigned PDSEL0:1;
unsigned PDSEL1:1;
unsigned :5;
unsigned UEN0:1;
unsigned UEN1:1;
};
struct {
unsigned :13;
unsigned USIDL:1;
unsigned :1;
unsigned UARTEN:1;
};
struct {
unsigned w:32;
};
} __UDCMODEbits_t;
extern volatile __UDCMODEbits_t UDCMODEbits __asm__ ("UDCMODE") __attribute__((section("sfrs")));
extern volatile unsigned int U1MODECLR __attribute__((section("sfrs")));
extern volatile unsigned int UDCMODECLR __attribute__((section("sfrs")));
extern volatile unsigned int U1MODESET __attribute__((section("sfrs")));
extern volatile unsigned int UDCMODESET __attribute__((section("sfrs")));
extern volatile unsigned int U1MODEINV __attribute__((section("sfrs")));
extern volatile unsigned int UDCMODEINV __attribute__((section("sfrs")));
#define U1STA U1STA
extern volatile unsigned int U1STA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned URXDA:1;
unsigned OERR:1;
unsigned FERR:1;
unsigned PERR:1;
unsigned RIDLE:1;
unsigned ADDEN:1;
unsigned URXISEL:2;
unsigned TRMT:1;
unsigned UTXBF:1;
unsigned UTXEN:1;
unsigned UTXBRK:1;
unsigned URXEN:1;
unsigned UTXINV:1;
unsigned UTXISEL:2;
unsigned ADDR:8;
unsigned ADM_EN:1;
};
struct {
unsigned :6;
unsigned URXISEL0:1;
unsigned URXISEL1:1;
unsigned :6;
unsigned UTXISEL0:1;
unsigned UTXISEL1:1;
};
struct {
unsigned :14;
unsigned UTXSEL:2;
};
struct {
unsigned w:32;
};
} __U1STAbits_t;
extern volatile __U1STAbits_t U1STAbits __asm__ ("U1STA") __attribute__((section("sfrs")));
#define UDCSTA UDCSTA
extern volatile unsigned int UDCSTA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned URXDA:1;
unsigned OERR:1;
unsigned FERR:1;
unsigned PERR:1;
unsigned RIDLE:1;
unsigned ADDEN:1;
unsigned URXISEL:2;
unsigned TRMT:1;
unsigned UTXBF:1;
unsigned UTXEN:1;
unsigned UTXBRK:1;
unsigned URXEN:1;
unsigned UTXINV:1;
unsigned UTXISEL:2;
unsigned ADDR:8;
unsigned ADM_EN:1;
};
struct {
unsigned :6;
unsigned URXISEL0:1;
unsigned URXISEL1:1;
unsigned :6;
unsigned UTXISEL0:1;
unsigned UTXISEL1:1;
};
struct {
unsigned :14;
unsigned UTXSEL:2;
};
struct {
unsigned w:32;
};
} __UDCSTAbits_t;
extern volatile __UDCSTAbits_t UDCSTAbits __asm__ ("UDCSTA") __attribute__((section("sfrs")));
extern volatile unsigned int U1STACLR __attribute__((section("sfrs")));
extern volatile unsigned int UDCSTACLR __attribute__((section("sfrs")));
extern volatile unsigned int U1STASET __attribute__((section("sfrs")));
extern volatile unsigned int UDCSTASET __attribute__((section("sfrs")));
extern volatile unsigned int U1STAINV __attribute__((section("sfrs")));
extern volatile unsigned int UDCSTAINV __attribute__((section("sfrs")));
#define U1TXREG U1TXREG
extern volatile unsigned int U1TXREG __attribute__((section("sfrs")));
#define UDCTXREG UDCTXREG
extern volatile unsigned int UDCTXREG __attribute__((section("sfrs")));
#define U1RXREG U1RXREG
extern volatile unsigned int U1RXREG __attribute__((section("sfrs")));
#define UDCRXREG UDCRXREG
extern volatile unsigned int UDCRXREG __attribute__((section("sfrs")));
#define U1BRG U1BRG
extern volatile unsigned int U1BRG __attribute__((section("sfrs")));
#define UDCBRG UDCBRG
extern volatile unsigned int UDCBRG __attribute__((section("sfrs")));
extern volatile unsigned int U1BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int UDCBRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int U1BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int UDCBRGSET __attribute__((section("sfrs")));
extern volatile unsigned int U1BRGINV __attribute__((section("sfrs")));
extern volatile unsigned int UDCBRGINV __attribute__((section("sfrs")));
#define U2MODE U2MODE
extern volatile unsigned int U2MODE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned STSEL:1;
unsigned PDSEL:2;
unsigned BRGH:1;
unsigned RXINV:1;
unsigned ABAUD:1;
unsigned LPBACK:1;
unsigned WAKE:1;
unsigned UEN:2;
unsigned :1;
unsigned RTSMD:1;
unsigned IREN:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :1;
unsigned PDSEL0:1;
unsigned PDSEL1:1;
unsigned :5;
unsigned UEN0:1;
unsigned UEN1:1;
};
struct {
unsigned :13;
unsigned USIDL:1;
unsigned :1;
unsigned UARTEN:1;
};
struct {
unsigned w:32;
};
} __U2MODEbits_t;
extern volatile __U2MODEbits_t U2MODEbits __asm__ ("U2MODE") __attribute__((section("sfrs")));
#define U8932MODE U8932MODE
extern volatile unsigned int U8932MODE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned STSEL:1;
unsigned PDSEL:2;
unsigned BRGH:1;
unsigned RXINV:1;
unsigned ABAUD:1;
unsigned LPBACK:1;
unsigned WAKE:1;
unsigned UEN:2;
unsigned :1;
unsigned RTSMD:1;
unsigned IREN:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :1;
unsigned PDSEL0:1;
unsigned PDSEL1:1;
unsigned :5;
unsigned UEN0:1;
unsigned UEN1:1;
};
struct {
unsigned :13;
unsigned USIDL:1;
unsigned :1;
unsigned UARTEN:1;
};
struct {
unsigned w:32;
};
} __U8932MODEbits_t;
extern volatile __U8932MODEbits_t U8932MODEbits __asm__ ("U8932MODE") __attribute__((section("sfrs")));
extern volatile unsigned int U2MODECLR __attribute__((section("sfrs")));
extern volatile unsigned int U8932MODECLR __attribute__((section("sfrs")));
extern volatile unsigned int U2MODESET __attribute__((section("sfrs")));
extern volatile unsigned int U8932MODESET __attribute__((section("sfrs")));
extern volatile unsigned int U2MODEINV __attribute__((section("sfrs")));
extern volatile unsigned int U8932MODEINV __attribute__((section("sfrs")));
#define U2STA U2STA
extern volatile unsigned int U2STA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned URXDA:1;
unsigned OERR:1;
unsigned FERR:1;
unsigned PERR:1;
unsigned RIDLE:1;
unsigned ADDEN:1;
unsigned URXISEL:2;
unsigned TRMT:1;
unsigned UTXBF:1;
unsigned UTXEN:1;
unsigned UTXBRK:1;
unsigned URXEN:1;
unsigned UTXINV:1;
unsigned UTXISEL:2;
unsigned ADDR:8;
unsigned ADM_EN:1;
};
struct {
unsigned :6;
unsigned URXISEL0:1;
unsigned URXISEL1:1;
unsigned :6;
unsigned UTXISEL0:1;
unsigned UTXISEL1:1;
};
struct {
unsigned :14;
unsigned UTXSEL:2;
};
struct {
unsigned w:32;
};
} __U2STAbits_t;
extern volatile __U2STAbits_t U2STAbits __asm__ ("U2STA") __attribute__((section("sfrs")));
#define U8932STA U8932STA
extern volatile unsigned int U8932STA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned URXDA:1;
unsigned OERR:1;
unsigned FERR:1;
unsigned PERR:1;
unsigned RIDLE:1;
unsigned ADDEN:1;
unsigned URXISEL:2;
unsigned TRMT:1;
unsigned UTXBF:1;
unsigned UTXEN:1;
unsigned UTXBRK:1;
unsigned URXEN:1;
unsigned UTXINV:1;
unsigned UTXISEL:2;
unsigned ADDR:8;
unsigned ADM_EN:1;
};
struct {
unsigned :6;
unsigned URXISEL0:1;
unsigned URXISEL1:1;
unsigned :6;
unsigned UTXISEL0:1;
unsigned UTXISEL1:1;
};
struct {
unsigned :14;
unsigned UTXSEL:2;
};
struct {
unsigned w:32;
};
} __U8932STAbits_t;
extern volatile __U8932STAbits_t U8932STAbits __asm__ ("U8932STA") __attribute__((section("sfrs")));
extern volatile unsigned int U2STACLR __attribute__((section("sfrs")));
extern volatile unsigned int U8932STACLR __attribute__((section("sfrs")));
extern volatile unsigned int U2STASET __attribute__((section("sfrs")));
extern volatile unsigned int U8932STASET __attribute__((section("sfrs")));
extern volatile unsigned int U2STAINV __attribute__((section("sfrs")));
extern volatile unsigned int U8932STAINV __attribute__((section("sfrs")));
#define U2TXREG U2TXREG
extern volatile unsigned int U2TXREG __attribute__((section("sfrs")));
#define U8932TXREG U8932TXREG
extern volatile unsigned int U8932TXREG __attribute__((section("sfrs")));
#define U2RXREG U2RXREG
extern volatile unsigned int U2RXREG __attribute__((section("sfrs")));
#define U8932RXREG U8932RXREG
extern volatile unsigned int U8932RXREG __attribute__((section("sfrs")));
#define U2BRG U2BRG
extern volatile unsigned int U2BRG __attribute__((section("sfrs")));
#define U8932BRG U8932BRG
extern volatile unsigned int U8932BRG __attribute__((section("sfrs")));
extern volatile unsigned int U2BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int U8932BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int U2BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int U8932BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int U2BRGINV __attribute__((section("sfrs")));
extern volatile unsigned int U8932BRGINV __attribute__((section("sfrs")));
#define U39MODE U39MODE
extern volatile unsigned int U39MODE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned STSEL:1;
unsigned PDSEL:2;
unsigned BRGH:1;
unsigned RXINV:1;
unsigned ABAUD:1;
unsigned LPBACK:1;
unsigned WAKE:1;
unsigned UEN:2;
unsigned :1;
unsigned RTSMD:1;
unsigned IREN:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :1;
unsigned PDSEL0:1;
unsigned PDSEL1:1;
unsigned :5;
unsigned UEN0:1;
unsigned UEN1:1;
};
struct {
unsigned :13;
unsigned USIDL:1;
unsigned :1;
unsigned UARTEN:1;
};
struct {
unsigned w:32;
};
} __U39MODEbits_t;
extern volatile __U39MODEbits_t U39MODEbits __asm__ ("U39MODE") __attribute__((section("sfrs")));
#define U3MODE U3MODE
extern volatile unsigned int U3MODE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned STSEL:1;
unsigned PDSEL:2;
unsigned BRGH:1;
unsigned RXINV:1;
unsigned ABAUD:1;
unsigned LPBACK:1;
unsigned WAKE:1;
unsigned UEN:2;
unsigned :1;
unsigned RTSMD:1;
unsigned IREN:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :1;
unsigned PDSEL0:1;
unsigned PDSEL1:1;
unsigned :5;
unsigned UEN0:1;
unsigned UEN1:1;
};
struct {
unsigned :13;
unsigned USIDL:1;
unsigned :1;
unsigned UARTEN:1;
};
struct {
unsigned w:32;
};
} __U3MODEbits_t;
extern volatile __U3MODEbits_t U3MODEbits __asm__ ("U3MODE") __attribute__((section("sfrs")));
extern volatile unsigned int U39MODECLR __attribute__((section("sfrs")));
extern volatile unsigned int U3MODECLR __attribute__((section("sfrs")));
extern volatile unsigned int U39MODESET __attribute__((section("sfrs")));
extern volatile unsigned int U3MODESET __attribute__((section("sfrs")));
extern volatile unsigned int U39MODEINV __attribute__((section("sfrs")));
extern volatile unsigned int U3MODEINV __attribute__((section("sfrs")));
#define U39STA U39STA
extern volatile unsigned int U39STA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned URXDA:1;
unsigned OERR:1;
unsigned FERR:1;
unsigned PERR:1;
unsigned RIDLE:1;
unsigned ADDEN:1;
unsigned URXISEL:2;
unsigned TRMT:1;
unsigned UTXBF:1;
unsigned UTXEN:1;
unsigned UTXBRK:1;
unsigned URXEN:1;
unsigned UTXINV:1;
unsigned UTXISEL:2;
unsigned ADDR:8;
unsigned ADM_EN:1;
};
struct {
unsigned :6;
unsigned URXISEL0:1;
unsigned URXISEL1:1;
unsigned :6;
unsigned UTXISEL0:1;
unsigned UTXISEL1:1;
};
struct {
unsigned :14;
unsigned UTXSEL:2;
};
struct {
unsigned w:32;
};
} __U39STAbits_t;
extern volatile __U39STAbits_t U39STAbits __asm__ ("U39STA") __attribute__((section("sfrs")));
#define U3STA U3STA
extern volatile unsigned int U3STA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned URXDA:1;
unsigned OERR:1;
unsigned FERR:1;
unsigned PERR:1;
unsigned RIDLE:1;
unsigned ADDEN:1;
unsigned URXISEL:2;
unsigned TRMT:1;
unsigned UTXBF:1;
unsigned UTXEN:1;
unsigned UTXBRK:1;
unsigned URXEN:1;
unsigned UTXINV:1;
unsigned UTXISEL:2;
unsigned ADDR:8;
unsigned ADM_EN:1;
};
struct {
unsigned :6;
unsigned URXISEL0:1;
unsigned URXISEL1:1;
unsigned :6;
unsigned UTXISEL0:1;
unsigned UTXISEL1:1;
};
struct {
unsigned :14;
unsigned UTXSEL:2;
};
struct {
unsigned w:32;
};
} __U3STAbits_t;
extern volatile __U3STAbits_t U3STAbits __asm__ ("U3STA") __attribute__((section("sfrs")));
extern volatile unsigned int U39STACLR __attribute__((section("sfrs")));
extern volatile unsigned int U3STACLR __attribute__((section("sfrs")));
extern volatile unsigned int U39STASET __attribute__((section("sfrs")));
extern volatile unsigned int U3STASET __attribute__((section("sfrs")));
extern volatile unsigned int U39STAINV __attribute__((section("sfrs")));
extern volatile unsigned int U3STAINV __attribute__((section("sfrs")));
#define U39TXREG U39TXREG
extern volatile unsigned int U39TXREG __attribute__((section("sfrs")));
#define U3TXREG U3TXREG
extern volatile unsigned int U3TXREG __attribute__((section("sfrs")));
#define U39RXREG U39RXREG
extern volatile unsigned int U39RXREG __attribute__((section("sfrs")));
#define U3RXREG U3RXREG
extern volatile unsigned int U3RXREG __attribute__((section("sfrs")));
#define U39BRG U39BRG
extern volatile unsigned int U39BRG __attribute__((section("sfrs")));
#define U3BRG U3BRG
extern volatile unsigned int U3BRG __attribute__((section("sfrs")));
extern volatile unsigned int U39BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int U3BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int U39BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int U3BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int U39BRGINV __attribute__((section("sfrs")));
extern volatile unsigned int U3BRGINV __attribute__((section("sfrs")));
#define U4MODE U4MODE
extern volatile unsigned int U4MODE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned STSEL:1;
unsigned PDSEL:2;
unsigned BRGH:1;
unsigned RXINV:1;
unsigned ABAUD:1;
unsigned LPBACK:1;
unsigned WAKE:1;
unsigned UEN:2;
unsigned :1;
unsigned RTSMD:1;
unsigned IREN:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :1;
unsigned PDSEL0:1;
unsigned PDSEL1:1;
unsigned :5;
unsigned UEN0:1;
unsigned UEN1:1;
};
struct {
unsigned :13;
unsigned USIDL:1;
unsigned :1;
unsigned UARTEN:1;
};
struct {
unsigned w:32;
};
} __U4MODEbits_t;
extern volatile __U4MODEbits_t U4MODEbits __asm__ ("U4MODE") __attribute__((section("sfrs")));
#define UodMODE UodMODE
extern volatile unsigned int UodMODE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned STSEL:1;
unsigned PDSEL:2;
unsigned BRGH:1;
unsigned RXINV:1;
unsigned ABAUD:1;
unsigned LPBACK:1;
unsigned WAKE:1;
unsigned UEN:2;
unsigned :1;
unsigned RTSMD:1;
unsigned IREN:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :1;
unsigned PDSEL0:1;
unsigned PDSEL1:1;
unsigned :5;
unsigned UEN0:1;
unsigned UEN1:1;
};
struct {
unsigned :13;
unsigned USIDL:1;
unsigned :1;
unsigned UARTEN:1;
};
struct {
unsigned w:32;
};
} __UodMODEbits_t;
extern volatile __UodMODEbits_t UodMODEbits __asm__ ("UodMODE") __attribute__((section("sfrs")));
extern volatile unsigned int U4MODECLR __attribute__((section("sfrs")));
extern volatile unsigned int UodMODECLR __attribute__((section("sfrs")));
extern volatile unsigned int U4MODESET __attribute__((section("sfrs")));
extern volatile unsigned int UodMODESET __attribute__((section("sfrs")));
extern volatile unsigned int U4MODEINV __attribute__((section("sfrs")));
extern volatile unsigned int UodMODEINV __attribute__((section("sfrs")));
#define U4STA U4STA
extern volatile unsigned int U4STA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned URXDA:1;
unsigned OERR:1;
unsigned FERR:1;
unsigned PERR:1;
unsigned RIDLE:1;
unsigned ADDEN:1;
unsigned URXISEL:2;
unsigned TRMT:1;
unsigned UTXBF:1;
unsigned UTXEN:1;
unsigned UTXBRK:1;
unsigned URXEN:1;
unsigned UTXINV:1;
unsigned UTXISEL:2;
unsigned ADDR:8;
unsigned ADM_EN:1;
};
struct {
unsigned :6;
unsigned URXISEL0:1;
unsigned URXISEL1:1;
unsigned :6;
unsigned UTXISEL0:1;
unsigned UTXISEL1:1;
};
struct {
unsigned :14;
unsigned UTXSEL:2;
};
struct {
unsigned w:32;
};
} __U4STAbits_t;
extern volatile __U4STAbits_t U4STAbits __asm__ ("U4STA") __attribute__((section("sfrs")));
#define UodSTA UodSTA
extern volatile unsigned int UodSTA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned URXDA:1;
unsigned OERR:1;
unsigned FERR:1;
unsigned PERR:1;
unsigned RIDLE:1;
unsigned ADDEN:1;
unsigned URXISEL:2;
unsigned TRMT:1;
unsigned UTXBF:1;
unsigned UTXEN:1;
unsigned UTXBRK:1;
unsigned URXEN:1;
unsigned UTXINV:1;
unsigned UTXISEL:2;
unsigned ADDR:8;
unsigned ADM_EN:1;
};
struct {
unsigned :6;
unsigned URXISEL0:1;
unsigned URXISEL1:1;
unsigned :6;
unsigned UTXISEL0:1;
unsigned UTXISEL1:1;
};
struct {
unsigned :14;
unsigned UTXSEL:2;
};
struct {
unsigned w:32;
};
} __UodSTAbits_t;
extern volatile __UodSTAbits_t UodSTAbits __asm__ ("UodSTA") __attribute__((section("sfrs")));
extern volatile unsigned int U4STACLR __attribute__((section("sfrs")));
extern volatile unsigned int UodSTACLR __attribute__((section("sfrs")));
extern volatile unsigned int U4STASET __attribute__((section("sfrs")));
extern volatile unsigned int UodSTASET __attribute__((section("sfrs")));
extern volatile unsigned int U4STAINV __attribute__((section("sfrs")));
extern volatile unsigned int UodSTAINV __attribute__((section("sfrs")));
#define U4TXREG U4TXREG
extern volatile unsigned int U4TXREG __attribute__((section("sfrs")));
#define UodTXREG UodTXREG
extern volatile unsigned int UodTXREG __attribute__((section("sfrs")));
#define U4RXREG U4RXREG
extern volatile unsigned int U4RXREG __attribute__((section("sfrs")));
#define UodRXREG UodRXREG
extern volatile unsigned int UodRXREG __attribute__((section("sfrs")));
#define U4BRG U4BRG
extern volatile unsigned int U4BRG __attribute__((section("sfrs")));
#define UodBRG UodBRG
extern volatile unsigned int UodBRG __attribute__((section("sfrs")));
extern volatile unsigned int U4BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int UodBRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int U4BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int UodBRGSET __attribute__((section("sfrs")));
extern volatile unsigned int U4BRGINV __attribute__((section("sfrs")));
extern volatile unsigned int UodBRGINV __attribute__((section("sfrs")));
#define PMCON PMCON
extern volatile unsigned int PMCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned RDSP:1;
unsigned WRSP:1;
unsigned :1;
unsigned CS1P:1;
unsigned CS2P:1;
unsigned ALP:1;
unsigned CSF:2;
unsigned PTRDEN:1;
unsigned PTWREN:1;
unsigned PMPTTL:1;
unsigned ADRMUX:2;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :6;
unsigned CSF0:1;
unsigned CSF1:1;
unsigned :3;
unsigned ADRMUX0:1;
unsigned ADRMUX1:1;
};
struct {
unsigned :13;
unsigned PSIDL:1;
unsigned :1;
unsigned PMPEN:1;
};
struct {
unsigned w:32;
};
} __PMCONbits_t;
extern volatile __PMCONbits_t PMCONbits __asm__ ("PMCON") __attribute__((section("sfrs")));
extern volatile unsigned int PMCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int PMCONSET __attribute__((section("sfrs")));
extern volatile unsigned int PMCONINV __attribute__((section("sfrs")));
#define PMMODE PMMODE
extern volatile unsigned int PMMODE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned WAITE:2;
unsigned WAITM:4;
unsigned WAITB:2;
unsigned MODE:2;
unsigned MODE16:1;
unsigned INCM:2;
unsigned IRQM:2;
unsigned BUSY:1;
};
struct {
unsigned WAITE0:1;
unsigned WAITE1:1;
unsigned WAITM0:1;
unsigned WAITM1:1;
unsigned WAITM2:1;
unsigned WAITM3:1;
unsigned WAITB0:1;
unsigned WAITB1:1;
unsigned MODE0:1;
unsigned MODE1:1;
unsigned :1;
unsigned INCM0:1;
unsigned INCM1:1;
unsigned IRQM0:1;
unsigned IRQM1:1;
};
struct {
unsigned w:32;
};
} __PMMODEbits_t;
extern volatile __PMMODEbits_t PMMODEbits __asm__ ("PMMODE") __attribute__((section("sfrs")));
extern volatile unsigned int PMMODECLR __attribute__((section("sfrs")));
extern volatile unsigned int PMMODESET __attribute__((section("sfrs")));
extern volatile unsigned int PMMODEINV __attribute__((section("sfrs")));
#define PMADDR PMADDR
extern volatile unsigned int PMADDR __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ADDR:14;
unsigned CS:2;
};
struct {
unsigned PADDR:14;
};
struct {
unsigned :14;
unsigned CS1:1;
unsigned CS2:1;
};
struct {
unsigned w:32;
};
} __PMADDRbits_t;
extern volatile __PMADDRbits_t PMADDRbits __asm__ ("PMADDR") __attribute__((section("sfrs")));
extern volatile unsigned int PMADDRCLR __attribute__((section("sfrs")));
extern volatile unsigned int PMADDRSET __attribute__((section("sfrs")));
extern volatile unsigned int PMADDRINV __attribute__((section("sfrs")));
#define PMDOUT PMDOUT
extern volatile unsigned int PMDOUT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned DATAOUT:32;
};
struct {
unsigned w:32;
};
} __PMDOUTbits_t;
extern volatile __PMDOUTbits_t PMDOUTbits __asm__ ("PMDOUT") __attribute__((section("sfrs")));
extern volatile unsigned int PMDOUTCLR __attribute__((section("sfrs")));
extern volatile unsigned int PMDOUTSET __attribute__((section("sfrs")));
extern volatile unsigned int PMDOUTINV __attribute__((section("sfrs")));
#define PMDIN PMDIN
extern volatile unsigned int PMDIN __attribute__((section("sfrs")));
typedef union {
struct {
unsigned DATAIN:32;
};
struct {
unsigned w:32;
};
} __PMDINbits_t;
extern volatile __PMDINbits_t PMDINbits __asm__ ("PMDIN") __attribute__((section("sfrs")));
extern volatile unsigned int PMDINCLR __attribute__((section("sfrs")));
extern volatile unsigned int PMDINSET __attribute__((section("sfrs")));
extern volatile unsigned int PMDININV __attribute__((section("sfrs")));
#define PMAEN PMAEN
extern volatile unsigned int PMAEN __attribute__((section("sfrs")));
typedef union {
struct {
unsigned PTEN:16;
};
struct {
unsigned PTEN0:1;
unsigned PTEN1:1;
unsigned PTEN2:1;
unsigned PTEN3:1;
unsigned PTEN4:1;
unsigned PTEN5:1;
unsigned PTEN6:1;
unsigned PTEN7:1;
unsigned PTEN8:1;
unsigned PTEN9:1;
unsigned PTEN10:1;
unsigned PTEN11:1;
unsigned PTEN12:1;
unsigned PTEN13:1;
unsigned PTEN14:1;
unsigned PTEN15:1;
};
struct {
unsigned w:32;
};
} __PMAENbits_t;
extern volatile __PMAENbits_t PMAENbits __asm__ ("PMAEN") __attribute__((section("sfrs")));
extern volatile unsigned int PMAENCLR __attribute__((section("sfrs")));
extern volatile unsigned int PMAENSET __attribute__((section("sfrs")));
extern volatile unsigned int PMAENINV __attribute__((section("sfrs")));
#define PMSTAT PMSTAT
extern volatile unsigned int PMSTAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned OB0E:1;
unsigned OB1E:1;
unsigned OB2E:1;
unsigned OB3E:1;
unsigned :2;
unsigned OBUF:1;
unsigned OBE:1;
unsigned IB0F:1;
unsigned IB1F:1;
unsigned IB2F:1;
unsigned IB3F:1;
unsigned :2;
unsigned IBOV:1;
unsigned IBF:1;
};
struct {
unsigned w:32;
};
} __PMSTATbits_t;
extern volatile __PMSTATbits_t PMSTATbits __asm__ ("PMSTAT") __attribute__((section("sfrs")));
extern volatile unsigned int PMSTATCLR __attribute__((section("sfrs")));
extern volatile unsigned int PMSTATSET __attribute__((section("sfrs")));
extern volatile unsigned int PMSTATINV __attribute__((section("sfrs")));
#define AD1CON1 AD1CON1
extern volatile unsigned int AD1CON1 __attribute__((section("sfrs")));
typedef union {
struct {
unsigned DONE:1;
unsigned SAMP:1;
unsigned ASAM:1;
unsigned :1;
unsigned CLRASAM:1;
unsigned SSRC:3;
unsigned FORM:3;
unsigned :2;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned :5;
unsigned SSRC0:1;
unsigned SSRC1:1;
unsigned SSRC2:1;
unsigned FORM0:1;
unsigned FORM1:1;
unsigned FORM2:1;
};
struct {
unsigned :13;
unsigned ADSIDL:1;
unsigned :1;
unsigned ADON:1;
};
struct {
unsigned w:32;
};
} __AD1CON1bits_t;
extern volatile __AD1CON1bits_t AD1CON1bits __asm__ ("AD1CON1") __attribute__((section("sfrs")));
extern volatile unsigned int AD1CON1CLR __attribute__((section("sfrs")));
extern volatile unsigned int AD1CON1SET __attribute__((section("sfrs")));
extern volatile unsigned int AD1CON1INV __attribute__((section("sfrs")));
#define AD1CON2 AD1CON2
extern volatile unsigned int AD1CON2 __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ALTS:1;
unsigned BUFM:1;
unsigned SMPI:4;
unsigned :1;
unsigned BUFS:1;
unsigned :2;
unsigned CSCNA:1;
unsigned :1;
unsigned OFFCAL:1;
unsigned VCFG:3;
};
struct {
unsigned :2;
unsigned SMPI0:1;
unsigned SMPI1:1;
unsigned SMPI2:1;
unsigned SMPI3:1;
unsigned :7;
unsigned VCFG0:1;
unsigned VCFG1:1;
unsigned VCFG2:1;
};
struct {
unsigned w:32;
};
} __AD1CON2bits_t;
extern volatile __AD1CON2bits_t AD1CON2bits __asm__ ("AD1CON2") __attribute__((section("sfrs")));
extern volatile unsigned int AD1CON2CLR __attribute__((section("sfrs")));
extern volatile unsigned int AD1CON2SET __attribute__((section("sfrs")));
extern volatile unsigned int AD1CON2INV __attribute__((section("sfrs")));
#define AD1CON3 AD1CON3
extern volatile unsigned int AD1CON3 __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ADCS:8;
unsigned SAMC:5;
unsigned :2;
unsigned ADRC:1;
};
struct {
unsigned ADCS0:1;
unsigned ADCS1:1;
unsigned ADCS2:1;
unsigned ADCS3:1;
unsigned ADCS4:1;
unsigned ADCS5:1;
unsigned ADCS6:1;
unsigned ADCS7:1;
unsigned SAMC0:1;
unsigned SAMC1:1;
unsigned SAMC2:1;
unsigned SAMC3:1;
unsigned SAMC4:1;
};
struct {
unsigned w:32;
};
} __AD1CON3bits_t;
extern volatile __AD1CON3bits_t AD1CON3bits __asm__ ("AD1CON3") __attribute__((section("sfrs")));
extern volatile unsigned int AD1CON3CLR __attribute__((section("sfrs")));
extern volatile unsigned int AD1CON3SET __attribute__((section("sfrs")));
extern volatile unsigned int AD1CON3INV __attribute__((section("sfrs")));
#define AD1CHS AD1CHS
extern volatile unsigned int AD1CHS __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :16;
unsigned CH0SA:5;
unsigned :2;
unsigned CH0NA:1;
unsigned CH0SB:5;
unsigned :2;
unsigned CH0NB:1;
};
struct {
unsigned :16;
unsigned CH0SA0:1;
unsigned CH0SA1:1;
unsigned CH0SA2:1;
unsigned CH0SA3:1;
unsigned CH0SA4:1;
unsigned :3;
unsigned CH0SB0:1;
unsigned CH0SB1:1;
unsigned CH0SB2:1;
unsigned CH0SB3:1;
unsigned CH0SB4:1;
};
struct {
unsigned w:32;
};
} __AD1CHSbits_t;
extern volatile __AD1CHSbits_t AD1CHSbits __asm__ ("AD1CHS") __attribute__((section("sfrs")));
extern volatile unsigned int AD1CHSCLR __attribute__((section("sfrs")));
extern volatile unsigned int AD1CHSSET __attribute__((section("sfrs")));
extern volatile unsigned int AD1CHSINV __attribute__((section("sfrs")));
#define AD1CSSL AD1CSSL
extern volatile unsigned int AD1CSSL __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CSSL:31;
};
struct {
unsigned CSSL0:1;
unsigned CSSL1:1;