code
stringlengths 3
1.05M
| repo_name
stringlengths 4
116
| path
stringlengths 3
942
| language
stringclasses 30
values | license
stringclasses 15
values | size
int32 3
1.05M
|
---|---|---|---|---|---|
from django.apps import AppConfig
class DjangoFrontendConfig(AppConfig):
name = 'djfrontend'
label = 'djfrontend'
verbose_name = 'Django Frontend'
|
Power-Inside/django-frontend
|
djfrontend/apps.py
|
Python
|
mit
| 161 |
import Canvas from './canvasHelpers';
const isChrome = !!window.chrome && !!window.chrome.webstore;
const isFirefox = typeof InstallTrigger !== 'undefined';
export default function (direction, ...colors) {
if (isChrome === false && isFirefox === false) return;
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
const link = document.querySelector('link[rel*="icon"]');
canvas.height = 32;
canvas.width = 32; // set the size
const dir = Canvas.generateCoordinates(direction, canvas.height, canvas.width);
const grd = ctx.createLinearGradient(...dir);
ctx.fillStyle = Canvas.generateFillStyle(grd, ...colors);
ctx.fillRect(0, 0, canvas.width, canvas.height);
link.href = canvas.toDataURL('image/png'); // update favicon
}
|
distriker/uiGradients
|
src/services/faviconUpdater.js
|
JavaScript
|
mit
| 785 |
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http.Filters;
using HubAnalytics.Core;
namespace HubAnalytics.WebAPI2
{
public class ExceptionCaptureFilter : ExceptionFilterAttribute
{
private readonly IHubAnalyticsClient _recorder;
public ExceptionCaptureFilter(IHubAnalyticsClientFactory hubAnalyticsClientFactory = null)
{
if (hubAnalyticsClientFactory == null)
{
hubAnalyticsClientFactory = new HubAnalyticsClientFactory();
}
_recorder = hubAnalyticsClientFactory.GetClient();
}
public override async Task OnExceptionAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
{
Dictionary<string, string> additionalData = new Dictionary<string, string>
{
{ "action", actionExecutedContext.ActionContext.ActionDescriptor.ActionName },
{"controller", actionExecutedContext.ActionContext.ControllerContext.ControllerDescriptor.ControllerName }
};
_recorder.Error(actionExecutedContext.Exception, additionalData);
await Task.FromResult(0);
}
}
}
|
MicroserviceAnalytics/DataCaptureClients
|
src/HubAnalytics.WebAPI2/ExceptionCaptureFilter.cs
|
C#
|
mit
| 1,269 |
//
// DKBlendingOptions.h
// SampleEffects
//
// Created by Dal Rupnik on 02/04/14.
// Copyright (c) 2014 arvystate.net. All rights reserved.
//
@protocol DKBlendingOption <NSObject>
@end
@interface DKBlendingOptions : NSObject
@property (nonatomic, strong) UIView* targetView;
@property (nonatomic, strong) UIView<DKBlendingOption>* colorOverlay;
@end
|
nikhildhamsaniya/DesignKit
|
DesignKit/Blending/DKBlendingOptions.h
|
C
|
mit
| 364 |
Planned ES7 improvements:
`store/todosStoreFactory.js`
import Vuex from 'vuex'
export default function () {
return new Vuex({
state: {
todos: []
}
})
}
`behaviors/LoadTodos.js`
import {inject, init} from 'izi-vue'
import {autobind} from 'core-decorators'
import {TodosService} from './TodosService'
import {LOAD_TODOS} from './actions'
export default class LoadTodos {
@inject('todosStore') // inject by bean id
store
@inject(TodosService) // inject by class reference
service
@init // call this method when dependencies are ready to use
load() {
this.service.get().then(this.onResult)
}
@autobind
onResult(response) { // response is let say array of {id:number, label:string, active:boolean}
this.store.dispatch(LOAD_TODOS, response)
}
}
`view/TodoListView.vue`
<script>
import {injectStore} from 'izi-vue'
export defaut {
@injectStore('todoStore')
store: null
}
</script>
<template>
<div>.....</div>
</template>
`todosListContext.js`
import {izi, singleton, MainView} from './common'
import todosStoreFactory from './store/todosStoreFactory'
import TodoListView from './view/TodoListView.vue'
import LoadTodos from './behaviors/LoadTodos'
import TodosService from './services/TodosService'
export default function ($targetEl) {
return izi.bakeBeans({
todosStore: todosStoreFactory, // factory method - this bean can't be injected by reference
// it must be injected by string 'todosStore'
TodosService,
TodoListView: singleton(MainView).withProps({
el: $targetEl,
component: TodoListView
}),
LoadTodos
})
}
`app.js`
import todosListContext from './todos-list/todosListContext'
todosListContext(document.getElementById('todos-list'))
|
gejgalis/izi-js-vue
|
ES7.md
|
Markdown
|
mit
| 2,061 |
'use strict';
describe('Service: BookDataService', function () {
// just to match the baseUrl in the service
var baseUrl = 'http://localhost:4730';
var BookDataService,
$httpBackend;
// load the application module
beforeEach(module('bmApp'));
// get a reference to all used services
beforeEach(inject(function (_BookDataService_, _$httpBackend_) {
BookDataService = _BookDataService_;
$httpBackend = _$httpBackend_;
}));
// define trained responses
beforeEach(function() {
$httpBackend.when(
'GET', baseUrl + '/api/books'
).respond(testBooks);
$httpBackend.when(
'GET', baseUrl + '/api/books/' + csBook.isbn
).respond(csBook);
$httpBackend.when(
'GET', baseUrl + '/api/books/test'
).respond(404, '');
$httpBackend.when(
'POST', baseUrl + '/api/books'
).respond(true);
$httpBackend.when(
'PUT', baseUrl + '/api/books/' + csBook.isbn
).respond(true);
$httpBackend.when(
'DELETE', baseUrl + '/api/books/' + csBook.isbn
).respond(true);
});
afterEach(function() {
$httpBackend.verifyNoOutstandingExpectation();
$httpBackend.verifyNoOutstandingRequest();
});
describe('Public API', function() {
it('should include a getBookByIsbn() function', function () {
expect(BookDataService.getBookByIsbn).toBeDefined();
});
it('should include a getBooks() function', function () {
expect(BookDataService.getBooks).toBeDefined();
});
it('should include a storeBook() function', function () {
expect(BookDataService.storeBook).toBeDefined();
});
it('should include a updateBook() function', function () {
expect(BookDataService.updateBook).toBeDefined();
});
it('should include a deleteBookByIsbn() function', function () {
expect(BookDataService.deleteBookByIsbn).toBeDefined();
});
});
describe('Public API usage', function() {
describe('getBookByIsbn()', function() {
it('should return the proper book object', function() {
$httpBackend.expectGET(baseUrl + '/api/books/' + csBook.isbn);
var book;
BookDataService.getBookByIsbn(csBook.isbn).then(function(res) {
book = res.data;
});
$httpBackend.flush();
expect(book.title).toBe(csBook.title);
});
it('should return null (invalid isbn)', function() {
$httpBackend.expectGET(baseUrl + '/api/books/test');
var error;
BookDataService.getBookByIsbn('test').then(function(res) {
}, function(err) {
error = err;
});
$httpBackend.flush();
expect(error).toBeDefined();
});
});
describe('getBooks()', function() {
it('should return a proper array of book objects', function() {
$httpBackend.expectGET(baseUrl + '/api/books');
var books;
BookDataService.getBooks().then(function(res) {
books = res.data;
});
$httpBackend.flush();
expect(books.length).toBe(testBooks.length);
});
});
describe('storeBook()', function() {
it('should properly store the passed book object', function() {
$httpBackend.expectPOST(baseUrl + '/api/books', effectiveJsBook);
BookDataService.storeBook(effectiveJsBook);
$httpBackend.flush();
});
});
describe('updateBook()', function() {
it('should properly update the book object', function() {
$httpBackend.expectPUT(baseUrl + '/api/books/' + csBook.isbn, csBook);
BookDataService.updateBook(csBook);
$httpBackend.flush();
});
});
describe('deleteBookByIsbn()', function() {
it('should properly delete the book object with the passed isbn', function() {
$httpBackend.expectDELETE(baseUrl + '/api/books/' + csBook.isbn);
BookDataService.deleteBookByIsbn(csBook.isbn);
$httpBackend.flush();
});
});
});
// Helper objects
var effectiveJsBook = {
title : 'JavaScript effektiv',
subtitle : '68 Dinge, die ein guter JavaScript-Entwickler wissen sollte',
isbn : '978-3-86490-127-0',
abstract : 'Wollen Sie JavaScript wirklich beherrschen?',
numPages : 240,
author : 'David Herman',
publisher : {
name: 'dpunkt.verlag',
url : 'http://dpunkt.de/'
}
};
var csBook = {
title: 'CoffeeScript',
subtitle: 'Einfach JavaScript',
isbn: '978-3-86490-050-1',
abstract: 'CoffeeScript ist eine junge, kleine Programmiersprache, die nach JavaScript übersetzt wird.',
numPages: 200,
author: 'Andreas Schubert',
publisher: {
name: 'dpunkt.verlag',
url: 'http://dpunkt.de/'
},
tags: [
'coffeescript', 'web'
]
};
var testBooks = [
{
title: 'JavaScript für Enterprise-Entwickler',
subtitle: 'Professionell programmieren im Browser und auf dem Server',
isbn: '978-3-89864-728-1',
abstract: 'JavaScript ist längst nicht mehr nur für klassische Webprogrammierer interessant.',
numPages: 302,
author: 'Oliver Ochs',
publisher: {
name: 'dpunkt.verlag',
url: 'http://dpunkt.de/'
},
tags: [
'javascript', 'enterprise', 'nodejs', 'web', 'browser'
]
},
{
title: 'Node.js & Co.',
subtitle: 'Skalierbare, hochperformante und echtzeitfähige Webanwendungen professionell in JavaScript entwickeln',
isbn: '978-3-89864-829-5',
abstract: 'Nach dem Webbrowser erobert JavaScript nun auch den Webserver.',
numPages: 334,
author: 'Golo Roden',
publisher: {
name: 'dpunkt.verlag',
url: 'http://dpunkt.de/'
},
tags: [
'javascript', 'nodejs', 'web', 'realtime', 'socketio'
]
},
csBook
];
});
|
alessioalex/dpunkt-buch-beispiele
|
ch04_03_http/test/unit/services/book_data.spec.js
|
JavaScript
|
mit
| 6,717 |
Clazz.declarePackage ("JV");
Clazz.load (["java.util.Hashtable"], ["JV.Connections", "$.Connection", "$.StateManager", "$.Scene"], ["java.util.Arrays", "JU.BS", "$.SB", "JM.Orientation", "JU.BSUtil"], function () {
c$ = Clazz.decorateAsClass (function () {
this.vwr = null;
this.saved = null;
this.lastOrientation = "";
this.lastContext = "";
this.lastConnections = "";
this.lastScene = "";
this.lastSelected = "";
this.lastState = "";
this.lastShape = "";
this.lastCoordinates = "";
Clazz.instantialize (this, arguments);
}, JV, "StateManager");
Clazz.prepareFields (c$, function () {
this.saved = new java.util.Hashtable ();
});
c$.getVariableList = Clazz.defineMethod (c$, "getVariableList",
function (htVariables, nMax, withSites, definedOnly) {
var sb = new JU.SB ();
var n = 0;
var list = new Array (htVariables.size ());
for (var entry, $entry = htVariables.entrySet ().iterator (); $entry.hasNext () && ((entry = $entry.next ()) || true);) {
var key = entry.getKey ();
var $var = entry.getValue ();
if ((withSites || !key.startsWith ("site_")) && (!definedOnly || key.charAt (0) == '@')) list[n++] = key + (key.charAt (0) == '@' ? " " + $var.asString () : " = " + JV.StateManager.varClip (key, $var.escape (), nMax));
}
java.util.Arrays.sort (list, 0, n);
for (var i = 0; i < n; i++) if (list[i] != null) sb.append (" ").append (list[i]).append (";\n");
if (n == 0 && !definedOnly) sb.append ("# --no global user variables defined--;\n");
return sb.toString ();
}, "java.util.Map,~N,~B,~B");
c$.getObjectIdFromName = Clazz.defineMethod (c$, "getObjectIdFromName",
function (name) {
if (name == null) return -1;
var objID = "background axis1 axis2 axis3 boundbox unitcell frank ".indexOf (name.toLowerCase ());
return (objID < 0 ? objID : Clazz.doubleToInt (objID / 11));
}, "~S");
c$.getObjectNameFromId = Clazz.defineMethod (c$, "getObjectNameFromId",
function (objId) {
if (objId < 0 || objId >= 8) return null;
return "background axis1 axis2 axis3 boundbox unitcell frank ".substring (objId * 11, objId * 11 + 11).trim ();
}, "~N");
Clazz.makeConstructor (c$,
function (vwr) {
this.vwr = vwr;
}, "JV.Viewer");
Clazz.defineMethod (c$, "clear",
function (global) {
this.vwr.setShowAxes (false);
this.vwr.setShowBbcage (false);
this.vwr.setShowUnitCell (false);
global.clear ();
}, "JV.GlobalSettings");
Clazz.defineMethod (c$, "resetLighting",
function () {
this.vwr.setIntProperty ("ambientPercent", 45);
this.vwr.setIntProperty ("celShadingPower", 10);
this.vwr.setIntProperty ("diffusePercent", 84);
this.vwr.setIntProperty ("phongExponent", 64);
this.vwr.setIntProperty ("specularExponent", 6);
this.vwr.setIntProperty ("specularPercent", 22);
this.vwr.setIntProperty ("specularPower", 40);
this.vwr.setIntProperty ("zDepth", 0);
this.vwr.setIntProperty ("zShadePower", 3);
this.vwr.setIntProperty ("zSlab", 50);
this.vwr.setBooleanProperty ("specular", true);
this.vwr.setBooleanProperty ("celShading", false);
this.vwr.setBooleanProperty ("zshade", false);
});
Clazz.defineMethod (c$, "setCrystallographicDefaults",
function () {
this.vwr.setAxesModeUnitCell (true);
this.vwr.setShowAxes (true);
this.vwr.setShowUnitCell (true);
this.vwr.setBooleanProperty ("perspectiveDepth", false);
});
Clazz.defineMethod (c$, "setCommonDefaults",
function () {
this.vwr.setBooleanProperty ("perspectiveDepth", true);
this.vwr.setFloatProperty ("bondTolerance", 0.45);
this.vwr.setFloatProperty ("minBondDistance", 0.4);
this.vwr.setIntProperty ("bondingVersion", 0);
this.vwr.setBooleanProperty ("translucent", true);
});
Clazz.defineMethod (c$, "setJmolDefaults",
function () {
this.setCommonDefaults ();
this.vwr.setStringProperty ("defaultColorScheme", "Jmol");
this.vwr.setBooleanProperty ("axesOrientationRasmol", false);
this.vwr.setBooleanProperty ("zeroBasedXyzRasmol", false);
this.vwr.setIntProperty ("percentVdwAtom", 23);
this.vwr.setIntProperty ("bondRadiusMilliAngstroms", 150);
this.vwr.setVdwStr ("auto");
});
Clazz.defineMethod (c$, "setRasMolDefaults",
function () {
this.setCommonDefaults ();
this.vwr.setStringProperty ("defaultColorScheme", "RasMol");
this.vwr.setBooleanProperty ("axesOrientationRasmol", true);
this.vwr.setBooleanProperty ("zeroBasedXyzRasmol", true);
this.vwr.setIntProperty ("percentVdwAtom", 0);
this.vwr.setIntProperty ("bondRadiusMilliAngstroms", 1);
this.vwr.setVdwStr ("Rasmol");
});
Clazz.defineMethod (c$, "setPyMOLDefaults",
function () {
this.setCommonDefaults ();
this.vwr.setStringProperty ("measurementUnits", "ANGSTROMS");
this.vwr.setBooleanProperty ("zoomHeight", true);
});
c$.getNoCase = Clazz.defineMethod (c$, "getNoCase",
function (saved, name) {
for (var e, $e = saved.entrySet ().iterator (); $e.hasNext () && ((e = $e.next ()) || true);) if (e.getKey ().equalsIgnoreCase (name)) return e.getValue ();
return null;
}, "java.util.Map,~S");
Clazz.defineMethod (c$, "listSavedStates",
function () {
var names = "";
for (var name, $name = this.saved.keySet ().iterator (); $name.hasNext () && ((name = $name.next ()) || true);) names += "\n" + name;
return names;
});
Clazz.defineMethod (c$, "deleteSavedType",
function (type) {
var e = this.saved.keySet ().iterator ();
while (e.hasNext ()) if (e.next ().startsWith (type)) e.remove ();
}, "~S");
Clazz.defineMethod (c$, "deleteSaved",
function (namelike) {
var e = this.saved.keySet ().iterator ();
while (e.hasNext ()) {
var name = e.next ();
if (name.startsWith (namelike) || name.endsWith ("_" + namelike) && name.indexOf ("_") == name.lastIndexOf ("_" + namelike)) e.remove ();
}
}, "~S");
Clazz.defineMethod (c$, "saveSelection",
function (saveName, bsSelected) {
if (saveName.equalsIgnoreCase ("DELETE")) {
this.deleteSavedType ("Selected_");
return;
}saveName = this.lastSelected = "Selected_" + saveName;
this.saved.put (saveName, JU.BSUtil.copy (bsSelected));
}, "~S,JU.BS");
Clazz.defineMethod (c$, "restoreSelection",
function (saveName) {
var name = (saveName.length > 0 ? "Selected_" + saveName : this.lastSelected);
var bsSelected = JV.StateManager.getNoCase (this.saved, name);
if (bsSelected == null) {
this.vwr.select ( new JU.BS (), false, 0, false);
return false;
}this.vwr.select (bsSelected, false, 0, false);
return true;
}, "~S");
Clazz.defineMethod (c$, "saveState",
function (saveName) {
if (saveName.equalsIgnoreCase ("DELETE")) {
this.deleteSavedType ("State_");
return;
}saveName = this.lastState = "State_" + saveName;
this.saved.put (saveName, this.vwr.getStateInfo ());
}, "~S");
Clazz.defineMethod (c$, "getSavedState",
function (saveName) {
var name = (saveName.length > 0 ? "State_" + saveName : this.lastState);
var script = JV.StateManager.getNoCase (this.saved, name);
return (script == null ? "" : script);
}, "~S");
Clazz.defineMethod (c$, "saveStructure",
function (saveName) {
if (saveName.equalsIgnoreCase ("DELETE")) {
this.deleteSavedType ("Shape_");
return;
}saveName = this.lastShape = "Shape_" + saveName;
this.saved.put (saveName, this.vwr.getStructureState ());
}, "~S");
Clazz.defineMethod (c$, "getSavedStructure",
function (saveName) {
var name = (saveName.length > 0 ? "Shape_" + saveName : this.lastShape);
var script = JV.StateManager.getNoCase (this.saved, name);
return (script == null ? "" : script);
}, "~S");
Clazz.defineMethod (c$, "saveCoordinates",
function (saveName, bsSelected) {
if (saveName.equalsIgnoreCase ("DELETE")) {
this.deleteSavedType ("Coordinates_");
return;
}saveName = this.lastCoordinates = "Coordinates_" + saveName;
this.saved.put (saveName, this.vwr.getCoordinateState (bsSelected));
}, "~S,JU.BS");
Clazz.defineMethod (c$, "getSavedCoordinates",
function (saveName) {
var name = (saveName.length > 0 ? "Coordinates_" + saveName : this.lastCoordinates);
var script = JV.StateManager.getNoCase (this.saved, name);
return (script == null ? "" : script);
}, "~S");
Clazz.defineMethod (c$, "getOrientation",
function () {
return new JM.Orientation (this.vwr, false, null);
});
Clazz.defineMethod (c$, "getSavedOrientationText",
function (saveName) {
var o;
if (saveName != null) {
o = this.getOrientationFor (saveName);
return (o == null ? "" : o.getMoveToText (true));
}var sb = new JU.SB ();
for (var e, $e = this.saved.entrySet ().iterator (); $e.hasNext () && ((e = $e.next ()) || true);) {
var name = e.getKey ();
if (name.startsWith ("Orientation_")) sb.append ((e.getValue ()).getMoveToText (true));
}
return sb.toString ();
}, "~S");
Clazz.defineMethod (c$, "saveScene",
function (saveName, scene) {
if (saveName.equalsIgnoreCase ("DELETE")) {
this.deleteSavedType ("Scene_");
return;
}var o = new JV.Scene (scene);
o.saveName = this.lastScene = "Scene_" + saveName;
this.saved.put (o.saveName, o);
}, "~S,java.util.Map");
Clazz.defineMethod (c$, "restoreScene",
function (saveName, timeSeconds) {
var o = JV.StateManager.getNoCase (this.saved, (saveName.length > 0 ? "Scene_" + saveName : this.lastScene));
return (o != null && o.restore (this.vwr, timeSeconds));
}, "~S,~N");
Clazz.defineMethod (c$, "saveOrientation",
function (saveName, pymolView) {
if (saveName.equalsIgnoreCase ("DELETE")) {
this.deleteSavedType ("Orientation_");
return;
}var o = new JM.Orientation (this.vwr, saveName.equalsIgnoreCase ("default"), pymolView);
o.saveName = this.lastOrientation = "Orientation_" + saveName;
this.saved.put (o.saveName, o);
}, "~S,~A");
Clazz.defineMethod (c$, "restoreOrientation",
function (saveName, timeSeconds, isAll) {
var o = this.getOrientationFor (saveName);
return (o != null && o.restore (timeSeconds, isAll));
}, "~S,~N,~B");
Clazz.defineMethod (c$, "getOrientationFor",
function (saveName) {
var name = (saveName.length > 0 ? "Orientation_" + saveName : this.lastOrientation);
return JV.StateManager.getNoCase (this.saved, name);
}, "~S");
Clazz.defineMethod (c$, "saveContext",
function (saveName, context) {
if (saveName.equalsIgnoreCase ("DELETE")) {
this.deleteSavedType ("Context_");
return;
}this.saved.put ((this.lastContext = "Context_" + saveName), context);
}, "~S,~O");
Clazz.defineMethod (c$, "getContext",
function (saveName) {
return this.saved.get (saveName.length == 0 ? this.lastContext : "Context_" + saveName);
}, "~S");
Clazz.defineMethod (c$, "saveBonds",
function (saveName) {
if (saveName.equalsIgnoreCase ("DELETE")) {
this.deleteSavedType ("Bonds_");
return;
}var b = new JV.Connections (this.vwr);
b.saveName = this.lastConnections = "Bonds_" + saveName;
this.saved.put (b.saveName, b);
}, "~S");
Clazz.defineMethod (c$, "restoreBonds",
function (saveName) {
this.vwr.clearModelDependentObjects ();
var name = (saveName.length > 0 ? "Bonds_" + saveName : this.lastConnections);
var c = JV.StateManager.getNoCase (this.saved, name);
return (c != null && c.restore ());
}, "~S");
c$.varClip = Clazz.defineMethod (c$, "varClip",
function (name, sv, nMax) {
if (nMax > 0 && sv.length > nMax) sv = sv.substring (0, nMax) + " #...more (" + sv.length + " bytes -- use SHOW " + name + " or MESSAGE @" + name + " to view)";
return sv;
}, "~S,~S,~N");
Clazz.defineStatics (c$,
"OBJ_BACKGROUND", 0,
"OBJ_AXIS1", 1,
"OBJ_AXIS2", 2,
"OBJ_AXIS3", 3,
"OBJ_BOUNDBOX", 4,
"OBJ_UNITCELL", 5,
"OBJ_FRANK", 6,
"OBJ_MAX", 8,
"objectNameList", "background axis1 axis2 axis3 boundbox unitcell frank ");
c$ = Clazz.decorateAsClass (function () {
this.saveName = null;
this.scene = null;
Clazz.instantialize (this, arguments);
}, JV, "Scene");
Clazz.makeConstructor (c$,
function (scene) {
this.scene = scene;
}, "java.util.Map");
Clazz.defineMethod (c$, "restore",
function (vwr, timeSeconds) {
var gen = this.scene.get ("generator");
if (gen != null) gen.generateScene (this.scene);
var pv = this.scene.get ("pymolView");
return (pv != null && vwr.tm.moveToPyMOL (vwr.eval, timeSeconds, pv));
}, "JV.Viewer,~N");
c$ = Clazz.decorateAsClass (function () {
this.saveName = null;
this.bondCount = 0;
this.connections = null;
this.vwr = null;
Clazz.instantialize (this, arguments);
}, JV, "Connections");
Clazz.makeConstructor (c$,
function (vwr) {
var modelSet = vwr.ms;
if (modelSet == null) return;
this.vwr = vwr;
this.bondCount = modelSet.bondCount;
this.connections = new Array (this.bondCount + 1);
var bonds = modelSet.bo;
for (var i = this.bondCount; --i >= 0; ) {
var b = bonds[i];
this.connections[i] = new JV.Connection (b.atom1.i, b.atom2.i, b.mad, b.colix, b.order, b.getEnergy (), b.shapeVisibilityFlags);
}
}, "JV.Viewer");
Clazz.defineMethod (c$, "restore",
function () {
var modelSet = this.vwr.ms;
if (modelSet == null) return false;
modelSet.deleteAllBonds ();
for (var i = this.bondCount; --i >= 0; ) {
var c = this.connections[i];
var ac = modelSet.ac;
if (c.atomIndex1 >= ac || c.atomIndex2 >= ac) continue;
var b = modelSet.bondAtoms (modelSet.at[c.atomIndex1], modelSet.at[c.atomIndex2], c.order, c.mad, null, c.energy, false, true);
b.colix = c.colix;
b.shapeVisibilityFlags = c.shapeVisibilityFlags;
}
for (var i = this.bondCount; --i >= 0; ) modelSet.bo[i].index = i;
this.vwr.setShapeProperty (1, "reportAll", null);
return true;
});
c$ = Clazz.decorateAsClass (function () {
this.atomIndex1 = 0;
this.atomIndex2 = 0;
this.mad = 0;
this.colix = 0;
this.order = 0;
this.energy = 0;
this.shapeVisibilityFlags = 0;
Clazz.instantialize (this, arguments);
}, JV, "Connection");
Clazz.makeConstructor (c$,
function (atom1, atom2, mad, colix, order, energy, shapeVisibilityFlags) {
this.atomIndex1 = atom1;
this.atomIndex2 = atom2;
this.mad = mad;
this.colix = colix;
this.order = order;
this.energy = energy;
this.shapeVisibilityFlags = shapeVisibilityFlags;
}, "~N,~N,~N,~N,~N,~N,~N");
});
|
m4rx9/rna-pdb-tools
|
rna_tools/tools/webserver-engine/app/static/app/jsmol/j2s/JV/StateManager.js
|
JavaScript
|
mit
| 13,934 |
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.presst import PresstApi, ModelResource
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite://'
db = SQLAlchemy(app)
class Book(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(), nullable=False)
year_published = db.Column(db.Integer)
db.create_all()
class BookResource(ModelResource):
class Meta:
model = Book
api = PresstApi(app)
api.add_resource(BookResource)
if __name__ == '__main__':
app.run()
|
svenstaro/flask-presst
|
examples/quickstart_api_simple.py
|
Python
|
mit
| 570 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TestMySqlParser.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TestMySqlParser.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
|
enginekit/SharpConnect.MySql
|
feature/TestMySqlParser/Properties/Resources.Designer.cs
|
C#
|
mit
| 2,789 |
# 城市轨道交通
## 城市轨道交通概述
广义的城市轨道交通(Urban rail transit 或 mass transit)泛指以各种形式的导轨为导向的城市公交客运系统。如地铁、轻轨、新交通、单轨交通、磁浮列车及索道、缆车、有轨电车、空中客车等系统。
狭义的城市轨道交通系统是指在城市中修建的快速、大中运量、用电力牵引、采用钢轮钢轨的轨道交通。线路可在地下、地面或高架上敷设。
城市轨道交通常被用作地铁与轻轨的通俗总称。
### 地铁与轻轨的运量区别
| | 单向最大高峰小时客流量 | 最小转弯半径 | 编组 |
| ---- | ----------- | -------- | ------------ |
| 轻轨 | 1.0-3.0万人次 | 一般要求100米 | 编组一般采用每列2~4辆 |
| 地铁 | 3.0-7.0万人次 | 一般要求300米 | 编组一般采用每列4~8辆 |
### 地铁与轻轨的申报条件比较
| | 地方财政一般预算收入 | 国内生产总值 | 城区人口 | 高峰小时客流 |
| ---- | ---------- | -------- | ------- | ------ |
| 地铁 | 100亿元以上 | 1000亿元以上 | 300万人以上 | 3万人以上 |
| 轻轨 | 60亿元以上 | 600亿元以上 | 150万人以上 | 1万人以上 |
### 城市轨道交通性能
轨道交通与城市中其它交通工具相比,除了能避免城市地面拥挤和充分利用空间外,还有很多优点:
1. **快速**。地铁列车在地下隧道内风驰电掣地行进,行驶时速甚至可以超过100公里。
2. **准时**。城市地面交通工具受路面交通情况或天气的影响,但城市轨道交通却不受干扰。在交通繁忙的高峰时间,列车间隔固定时间开出,固定时间到达。
3. **安全**。列车采用安全自动控制系统来操作,严格保证列车行车间隔。轨道交通供电采用双电源,停电可能性甚微。轨道交通同样重视防火措施,设有足够的灭火设施设备,各车站均安装有闭路监控系统,以便随时了解车站的情况。此外,各车站均由城市轨道公安分局的警员负责治安。
4. **舒适**。列车与车站均有空气调节装置,使温度与湿度保持在最舒适的范围内。
5. **运**量。轨道交通的运输能力要比地面公共汽车大7-10倍,是任何城市交通工具所不能比拟的。
6. **便利**。车站美观明亮、环境洁净,设施设备现代化。由于采用自动售检票系统,适应大量乘客使用轨道交通。站厅与站台层设有督导员与站务员,以协助乘客解决问题。轨道交通各处均设有明确的导向标志,使乘客搭乘地铁非常方便、简易。
7. **环保**。列车以电力作为动力,不存在空气污染问题,因此受到各国政府的青睐。
## 城市轨道交通线的主要组成
要想使一条轨道交通线正常的运营起来,必须具备车站、区间、车辆段、控制中心、车辆以及信号、通信、供电、环境控制等机电系统,并且要进行精密的运输组织。
1. **车站**:车站是轨道交通线的重要组成部分,是乘客上下车的场所,与乘客的关系大为密切,同时又集中设置了运营中很大一部分技术设备和运营管理系统。
车站按其功能分为中间站、折返站、换乘站和终点站四种。根据轨道和站台的位置不同主要分岛式站、侧式站和混合站三种。
车站通常分为站厅层和站台层,站厅层提供旅客问询、购票、检票、进站等服务。站台层则主要提供旅客候车和上下车服务。
2. **区间**:车站与车站相连的地下空间我们称为区间,而地面上为地面线路或高架线路。
3. **车辆段**:车辆段建造在线路的一端,它是承担车辆的大修、架修、定修、月检、车辆停放、清洗洗刷、车辆运用以及系统设备的综合维护保养等任务的场所。
4. **控制中心(OCC)**:控制中心是轨道交通行车调度指挥和监督中心、电力供应和各种设备的监控中心,也是运营管理的基础信息中心。在紧急情况下,控制中心还是指挥乘客紧急疏散和抢险救灾的信息处理、指挥和监控中心。控制中心建筑可以每一条线独立建设一个,也可以多条线路合建。
5. **车辆**:车辆是城市轨道交通系统的重要组成部分,也是技术含量较高的机电设备。轨道交通车辆具有先进性、可靠性和实用性,能满足容量大、安全、快速、美观和节能的要求。轨道交通车辆有动车(M,Motor)和拖车(T,Trailer)、带司机室车和不带司机室车等多种形式。
动车本身带有动力牵引装置,拖车本身无动力牵引装置;动车又分为带有受电弓的动车和不带受电弓的动车。
目前国内轨道交通所使用的车辆主要有A型、B型两种。
| 车型 | 长 | 宽 | 高 |
| ---- | ----- | ---- | ---- |
| A型车 | 22.1米 | 3米 | 3.8米 |
| B型车 | 19米 | 2.8米 | 3.8米 |
6. **信号设备**:信号设备的主要作用是保证行车的安全和提高线路的通过能力,包括信号装置、联锁装置、闭塞装置等。信号装置是指示列车运行条件的信号及附属设备;联锁装置是保证在车站范围内,行车和调车安全及提高通过能力的设备;闭塞装置是保证在区间内行车安全及提高通过能力的设备。
7. **通信系统**:通信系统是构成系统各部门之间有机联系、实现运输集中统一指挥、行车调度自动化、列车运行自动化、提高运输效率的必备工具与手段。轨道交通通信按其用途来分,可分为地区自动通信、公安通信、专用通信、有限广播、闭路电视、无线通信以及子母钟报时系统、会议系统、传真及计算机通信系统;按信息传输的媒介可分为有线通信和无线通信,有线通信又可分为光缆和电缆通信。轨道交通通信是既能传输语言,又能传输文字、数据、图像等各种信息的综合数字通信网。
8. **供电系统**:供电系统是为运营提供电能的。列车是电力牵引的电动列车,其动力是电能;此外,辅助设施包括照明、通风、空调、排水、通信、信号、防灾报警、自动扶梯等,也都依赖电能。轨道交通供电电源一般取自城市电网,通过城市电网一次电力系统和轨道交通供电系统实现输送或变换,然后以适当的电压等级供给轨道交通各类设备。根据用电性质的不同,轨道交通供电系统可分为两部分:由牵引变电所为主组成的DC1500V牵引供电系统和以降压变电所为主组成的DC220V动力照明供电系统。
9. **环境与设备监控系统**:环境与设备监控系统主要是为了保证地铁安全正常运行。一般地铁内设置通风、空调、给排水、消防等环境控制设备和自动扶梯、直升电梯、动力、照明、旅客引导各类必需的车站辅助设备。现代化程度较高的地铁内还装备了自动售检票系统、屏蔽门等。
10. **轨道交通运输组织**:轨道交通运输组织主要是列车运行组织和接发列车组织。在列车运行组织工作中,根据城市轨道交通吸引的城市人员上下班(学)等客运流量、流向的实际情况,在基本列车运行图中编划出早、晚客流高峰时段密集开行列车的阶段运行计划;同时,还编制出各种节假日、春运等形式列车运行图,以便最大限度地满足城市人口对地铁运输的各种需要。
## 国内外城市轨道交通发展情况
随着社会经济的发展,世界各地城市陆续出现了地面道路容量和一般交通方式无法满足日益增长的交通客流需要的状况。由于城市轨道交通在改善交通状况、减少环境污染、节省城市用地等方面具有明显优势,世界各大中城市均大力兴建和发展城市轨道交通。目前,全世界已有60多个国家共198个城市兴建了城市轨道交通,而且迫切希望实施的城市数量还在不断增加。
从1860年伦敦第一条地铁线的开始修建至今,城市轨道交通的发展已走过了近150年的历程。随着社会经济和科学技术的不断进步,城市轨道交通已从前期的探索发展期到如今的基本成熟期,即将迈入持续发展阶段。
### 轨道交通发展简史
- 1863年,世界上第一条地铁在英国伦敦建成通车。它标志着城市快速轨道交通诞生。
- 十九世纪,美国、英国、法国、匈牙利、奥地利等5个国家的7座城市相继修建了地铁。
- 本世纪初,欧洲和美洲又有9座城市修建了地铁,包括柏林、马德里、费城等。
- 第二次世界大战期间,由于受战争的影响,城市轨道建设速度放慢。莫斯科第一条地铁于1935年建成通车。
- 战后至上世纪七十年代,欧洲、亚洲、美洲有30余座城市地铁相继通车。
- 上世纪七十年代以来,世界进入和平发展时期,欧美亚各大城市均将修建地铁作为改善城市公共交通的重要手段,地铁发展进入了黄金期。
- **巴黎**地铁共修建15条总长293公里,有380个车站,每天运送450万乘客,占大巴黎地区人口的40% 。
- **东京**都内的地铁分属两家公司,一种是帝都高速交通财团运营的地铁,即营团地铁,共9条线路;另一个是东京都交通局运营的地铁,即都营地铁,共4条线路。
- **纽约**市目前拥有地铁线路26条,地铁车站468个,线路总长近370公里,每天载运450万人来往纽约市5大区。据统计,在每天进入曼哈顿中央商务区的客流中,搭乘地铁到达的为62.8%。
- **香港**地铁铁路系统网络全长91公里,由包括超过129.1公里长的隧道组成。市区线每小时最多可开出34班列车,即每1.75分钟一班,载客量达85000人次。
### 国内轨道交通发展历程
中国第一条地铁北京地铁一号线始建于1965年7月1日,1969年10月1日建成通车,但该地铁主要用于国防战备。
中国以公共交通为目的的城市轨道交通的发展经历了三个阶段。
- **第一阶段为开始建设阶段**(从20世纪80年代末至20世纪90年代中期)。以上海地铁一号线(21 km)、北京地铁复八线(13.6 km)、北京地铁一号线改造、广州地铁一号线(18.5 km)建设为标志。
- **第二阶段为调整整顿阶段**(1995-1998 年)。由于出现地铁建设的盲目性,且工程造价高(大约1 亿美元/km 左右)、大量引进设备等问题,1995年国务院办公厅60号文件通知,除上海地铁二号线外,所有地铁项目一律暂停审批,并要求做好发展规划和国产化工作。这期间近3年的时间里国家没有审批城市轨道交通项目。1997 年底开始,国家计委研究城市轨道设备国产化实施方案,提出深圳地铁一号线(19.5 km)、上海明珠线(24.5 km)、广州地铁二号线(23 km)作为国产化依托项目,于1998年批复3个项目立项,轨道交通项目又开始启动。
- **第三阶段为蓬勃发展阶段**(1999年以后)。一是随着国家积极财政政策的实施,国家从建设资金上给予有力支持;二是通过技术引进,国际先进制造企业同国内企业合作,实现了城市轨道交通车辆、设备本地化,使城市轨道交通建设造价大大降低。国家先后批准了深圳、上海、广州、重庆、武汉、南京、杭州、成都、哈尔滨、苏州等20多个城市轨道交通项目开工建设。
据估计,我国在“十一五”期间,全国城市轨道交通投入运营里程将达到1000公里左右,2010-2020年期间,又将会有1000-2000公里左右的城市轨道交通建成并投入运营。城市轨道交通将与外快速轨道交通及对外交通枢纽有机衔接,呈现不同等级合理衔接的公共交通网络一体化发展趋势。城市轨道交通真正开始进入一个蓬勃发展时期。
例如,到2012年底,上海中心城区每平方公里的土地面积上将有0.59公里的轨道交通运行,公交总量的43%将由轨道交通承担。到2015年,北京“三环、四横、五纵、七放射”总长561公里的轨道交通网络的宏伟蓝图将变为现实,轨道交 通日客运量从现在的290万人次增加到800万人次以上,轨道交通出行占公共交通出行量比例将提高到50%,占总出行比例将由5%提高到23%。
### 国内外轨道交通功能发展情况
轨道交通功能的发展趋势简单的可以概括为从适应型向发展型、从散线到网络化、从短距离低速度到长距离高速度三个方面。
1. **从适应型向发展型**。轨道交通建设的初期功能和目的是解决沿线的交通堵塞问题,将各方面的客流逐渐吸引到高效、准点、舒适环境的轨道交通上来,是属于交通疏导型的公共交通系统,如苏州轨道交通1号线。在陆续解决了城市内部的交通堵塞之后,由于城市轨道交通运量大、运输距离长和周边辐射效应强的特点,城市轨道交通又逐渐成为了拓广城市范围的主要手段之一,这时就属于发展引导型的公共交通系统。
2. **从散线到网络化**。城市轨道交通发挥作用以网络规模为前提,覆盖面越大,城市轨道交通效率越高。网络化除了城市本身内部的构成组织外,城市与城市之间、区域与区域之间的网络联系也是网络化的重要组成,除了先进国家已经完成了网络化构成,如日本,以新干线作为网络主线串联个大中城市,各城市还有大小不一的地铁网依附在新干线上。而中国等发展中国家虽然还处在组建网络的时期,但已经在开始研究和逐步实施的各城际铁路,就是适应网络化的一种趋势。
3. **从短距离低速度到长距离高速度**。随着城市用地范围的不断扩展,轨道交通线路的规模也不断拉长,原先20km的线路就能保证从城市一端跑到另一端,而现在动辄40~50km的线路有时也不能完全满足城市发展的需要,而随着线路的拉长,为保证运输时间,适应居民出行需要,列车运行速度也随之相应提高,如一般城市地铁的站间距为1km左右、最高运行速度为80km/h,而广州地铁的3号线的站间距达到了2km以上、最高速度达到了120km/h。
### 国内外轨道交通技术发展情况
轨道交通的科技发展其实是满足和促进社会经济发展需求的结果,在发展趋势上也有**大运量化**、**人性化**、**高科技化**和**多样化**四个主要方面。
- **大运量化**:为了适应城市发展的需要。随着城市人口和密度的增加,单一线路上承担的旅客流量也在不断增加。大运量化就是在有限的资源条件下,运用各项科学技术手段进行提高运能,典型的为信号系统的发展。信号系统从刚开始的轨道电路、准移动闭塞,到现在已广泛采用的移动闭塞系统,目的就是压缩行车间隔,增加固定时间段的运客能力。其它如大列车编组、扩大单车载客能力等都是适应大运量的具体体现。
- **人性化**:轨道交通建设的人性化发展较为广泛。主要是舒适度和安全度的提高。舒适度比如列车和车站范围空调系统的采用、新线建设中建筑空间增大、残障设施的不断完善和更新、导向系统的标准化等等。安全度主要是在紧急情况下对旅客的保护,包括屏蔽门的采用、防排烟等消防系统的完善标准的不断提高等等。
- **高科技化**:高科技化也是适应城市发展的需要。在先进国家内,由于大规模轨道交通线网的形成,以及城市道路用地的极限使用,对增加的新线的限制越来越大,目前逐步发展的直线电机系统,在爬坡能力强、埋深可以较深,以及转弯半径小、切割城市用地少等技术方面进行的提高,就是适应发展的一种体现。另外如轨道类型的增加,在减少振动、降低噪音方面,也在不断的进步和发展等等。
- **多样化**:多样化主要体现在轨道交通建设形式不再单一。随着各个城市的轨道交通兴建时,地形、地貌、客运量、景观的不同要求,轨道交通的形式也随之变化,目前陆续发展的形式有单轨、索轨、胶轮、磁浮等等,都是变化的具体体现。
### 国内外轨道交通运营模式发展情况
按照目前的建造行情,轨道交通的一般投资构成中:土建工程50-55% ,轨道2-7% ,车辆13-17% ,机务段5-6% ,牵引供电7-10% ,通信信号10-12% 其他1-4%。轨道交通作为投资规模巨大的基础设施项目,其筹资、融资、运营的模式发展很快,由于土地资源不可再生,各城市以轨道交通工程为载体,实现地上、地下空间综合开发利用的规划,已提到日程上来,特别以地下车站为载体,实施大面积地下空间联通开发,也给投融资模式带来新的研究课题。在其它基础设施建设中流行的BT、BOT模式,也曾在轨道交通建设中得到应用,社会上对此讨论也比较深入,在这里就不再赘述。我在这里着重介绍香港地铁的“地铁+物业”模式、PPP模式以及苏州轨道交通的“三统一、两分开模式”。
- 所谓的“**地铁+物业**”就是将地铁与沿线物业的规划建设、开发同时进行,沿线物业收益反哺轨道建设投资运营。 在满足站点综合交通功能的前提下,将站点上盖及周边物业实施一体化的综合开发。香港每开一条新建线路,地铁公司首先向政府取得发展车站上层空间的权利,之后找来地产商共同开发车站及上盖空间。地铁建成后,这块地皮肯定会升值,再根据不同条件兴建大型住宅、写字楼或商场,出售物业所得利润由地铁公司与发展商共享。再加上香港32.4%的人依靠地铁出行,香港地铁日均乘客量超过237万人次,香港地铁成为全世界唯一一家营利的地铁运营公司。
- **PPP(Public Private Partnership)模式**: 意为政府部门通过与私人部门建立伙伴关系提供公共产品或服务的一种方式。PPP模式大致分为3种类型:外包、特许经营、私有化。北京地铁4号线采用的是特许经营类型的PPP模式。在此模式下,政府负责4号线A部分投资、建设。PPP公司负责4号线B部分的投资、建设。4号线项目整体建设验收完毕后,政府将A部分的使用权交由PPP公司,由PPP公司在特许经营期内承担地铁4号线项目运营管理、全部设施(包括A和B两部分)的维护和除洞体外的资产更新以及站内的商业经营。政府负责制定票价,并行使监督权力。
- 苏州的“**三统一,两分开**”模式即统一组织和指挥、统一规划和建设、统一运营和管理,分开出资、分开开发”。其中,“分开开发”特指轨道交通红线外的地块开发。一号线的资金本由沿线各区政府承担(分别为吴中区、高新区、工业园区、相城区和古城区。其中古城区由市级财政承担)。各区政府的项目公司履行出资人的职能。
## 城轨规划的考量要点
1. 建设必要性及紧迫性(是项目立项的必要条件,必要性及紧迫性不足均会影响到项目的立项)
2. 客流规模及各线分担量(线网及各线客流量级的大小是关键,直接影响到轨道交通线网制式及投资,属于规划重大风险因素,如预测量级不当,极易导致重大错误决策)
3. 线网制式及规模(在客流量级的指导下,对车辆选型、编组、供电制式进行比选确定,并结合沿线实际及规划情况,对线路敷设方式、起讫点进行研究)
4. 近期建设规模及安排(近期建设线路的规划、建设先后顺序、线路的分期建设等方面进行研究)
5. 与城市总体规划的协调(线网是否与总体规划的用地范围、用地性质一致,是否支撑城市发展主方向)
6. 综合换乘枢杻(对主要换乘节点的方案要进行详细研究,保证线网节点锚固的稳定性)
7. 线网资源共享(对车辆段、主变电所、控制中心、联络线、车辆制式、供电制式、售检票制式等方面的共享进行研究)
8. 建设资金落实及平衡(项目的最终实施还需要财力的保证,要保证项目资本金的来源可靠)
---
|
waterbolik/prestudy
|
bdocker/mdwiki/wiki/轨道交通/城市轨道交通.md
|
Markdown
|
mit
| 20,963 |
function rocChart(id, data, options) {
// set default configuration
var cfg = {
"margin": {top: 30, right: 20, bottom: 70, left: 61},
"width": 470,
"height": 450,
"interpolationMode": "basis",
"ticks": undefined,
"tickValues": [0, .1, .25, .5, .75, .9, 1],
"fpr": "fpr",
"tprVariables": [{
"name": "tpr0",
}],
"animate": true
}
//Put all of the options into a variable called cfg
if('undefined' !== typeof options){
for(var i in options){
if('undefined' !== typeof options[i]){ cfg[i] = options[i]; }
}//for i
}//if
var tprVariables = cfg["tprVariables"];
// if values for labels are not specified
// set the default values for the labels to the corresponding
// true positive rate variable name
tprVariables.forEach(function(d, i) {
if('undefined' === typeof d.label){
d.label = d.name;
}
})
console.log("tprVariables", tprVariables);
var interpolationMode = cfg["interpolationMode"],
fpr = cfg["fpr"],
width = cfg["width"],
height = cfg["height"],
animate = cfg["animate"]
var format = d3.format('.2');
var aucFormat = d3.format('.4r')
var x = d3.scale.linear().range([0, width]);
var y = d3.scale.linear().range([height, 0]);
var color = d3.scale.category10() // d3.scale.ordinal().range(["steelblue", "red", "green", "purple"]);
var xAxis = d3.svg.axis()
.scale(x)
.orient("top")
.outerTickSize(0);
var yAxis = d3.svg.axis()
.scale(y)
.orient("right")
.outerTickSize(0);
// set the axis ticks based on input parameters,
// if ticks or tickValues are specified
if('undefined' !== typeof cfg["ticks"]) {
xAxis.ticks(cfg["ticks"]);
yAxis.ticks(cfg["ticks"]);
} else if ('undefined' !== typeof cfg["tickValues"]) {
xAxis.tickValues(cfg["tickValues"]);
yAxis.tickValues(cfg["tickValues"]);
} else {
xAxis.ticks(5);
yAxis.ticks(5);
}
// apply the format to the ticks we chose
xAxis.tickFormat(format);
yAxis.tickFormat(format);
// a function that returns a line generator
function curve(data, tpr) {
var lineGenerator = d3.svg.line()
.interpolate(interpolationMode)
.x(function(d) { return x(d[fpr]); })
.y(function(d) { return y(d[tpr]); });
return lineGenerator(data);
}
// a function that returns an area generator
function areaUnderCurve(data, tpr) {
var areaGenerator = d3.svg.area()
.x(function(d) { return x(d[fpr]); })
.y0(height)
.y1(function(d) { return y(d[tpr]); });
return areaGenerator(data);
}
var svg = d3.select("#roc")
.append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
x.domain([0, 1]);
y.domain([0, 1]);
svg.append("g")
.attr("class", "x axis")
.attr("transform", "translate(0," + height + ")")
.call(xAxis)
.append("text")
.attr("x", width / 2)
.attr("y", 40 )
.style("text-anchor", "middle")
.text("False Positive Rate")
var xAxisG = svg.select("g.x.axis");
// draw the top boundary line
xAxisG.append("line")
.attr({
"x1": -1,
"x2": width + 1,
"y1": -height,
"y2": -height
});
// draw a bottom boundary line over the existing
// x-axis domain path to make even corners
xAxisG.append("line")
.attr({
"x1": -1,
"x2": width + 1,
"y1": 0,
"y2": 0
});
// position the axis tick labels below the x-axis
xAxisG.selectAll('.tick text')
.attr('transform', 'translate(0,' + 25 + ')');
// hide the y-axis ticks for 0 and 1
xAxisG.selectAll("g.tick line")
.style("opacity", function(d) {
// if d is an integer
return d % 1 === 0 ? 0 : 1;
});
svg.append("g")
.attr("class", "y axis")
.call(yAxis)
.append("text")
.attr("transform", "rotate(-90)")
.attr("y", -35)
// manually configured so that the label is centered vertically
.attr("x", 0 - height/1.56)
.style("font-size","12px")
.style("text-anchor", "left")
.text("True Positive Rate");
yAxisG = svg.select("g.y.axis");
// add the right boundary line
yAxisG.append("line")
.attr({
"x1": width,
"x2": width,
"y1": 0,
"y2": height
})
// position the axis tick labels to the right of
// the y-axis and
// translate the first and the last tick labels
// so that they are right aligned
// or even with the 2nd digit of the decimal number
// tick labels
yAxisG.selectAll("g.tick text")
.attr('transform', function(d) {
if(d % 1 === 0) { // if d is an integer
return 'translate(' + -22 + ',0)';
} else if((d*10) % 1 === 0) { // if d is a 1 place decimal
return 'translate(' + -32 + ',0)';
} else {
return 'translate(' + -42 + ',0)';
}
})
// hide the y-axis ticks for 0 and 1
yAxisG.selectAll("g.tick line")
.style("opacity", function(d) {
// if d is an integer
return d % 1 === 0 ? 0 : 1;
});
// draw the random guess line
svg.append("line")
.attr("class", "curve")
.style("stroke", "black")
.attr({
"x1": 0,
"x2": width,
"y1": height,
"y2": 0
})
.style({
"stroke-width": 2,
"stroke-dasharray": "8",
"opacity": 0.4
})
// draw the ROC curves
function drawCurve(data, tpr, stroke){
svg.append("path")
.attr("class", "curve")
.style("stroke", stroke)
.attr("d", curve(data, tpr))
.on('mouseover', function(d) {
var areaID = "#" + tpr + "Area";
svg.select(areaID)
.style("opacity", .4)
var aucText = "." + tpr + "text";
svg.selectAll(aucText)
.style("opacity", .9)
})
.on('mouseout', function(){
var areaID = "#" + tpr + "Area";
svg.select(areaID)
.style("opacity", 0)
var aucText = "." + tpr + "text";
svg.selectAll(aucText)
.style("opacity", 0)
});
}
// draw the area under the ROC curves
function drawArea(data, tpr, fill) {
svg.append("path")
.attr("class", "area")
.attr("id", tpr + "Area")
.style({
"fill": fill,
"opacity": 0
})
.attr("d", areaUnderCurve(data, tpr))
}
function drawAUCText(auc, tpr, label) {
svg.append("g")
.attr("class", tpr + "text")
.style("opacity", 0)
.attr("transform", "translate(" + .5*width + "," + .79*height + ")")
.append("text")
.text(label)
.style({
"fill": "white",
"font-size": 18
});
svg.append("g")
.attr("class", tpr + "text")
.style("opacity", 0)
.attr("transform", "translate(" + .5*width + "," + .84*height + ")")
.append("text")
.text("AUC = " + aucFormat(auc))
.style({
"fill": "white",
"font-size": 18
});
}
// calculate the area under each curve
tprVariables.forEach(function(d){
var tpr = d.name;
var points = generatePoints(data, fpr, tpr);
var auc = calculateArea(points);
d["auc"] = auc;
})
console.log("tprVariables", tprVariables);
// draw curves, areas, and text for each
// true-positive rate in the data
tprVariables.forEach(function(d, i){
console.log("drawing the curve for", d.label)
console.log("color(", i, ")", color(i));
var tpr = d.name;
drawArea(data, tpr, color(i))
drawCurve(data, tpr, color(i));
drawAUCText(d.auc, tpr, d.label);
})
///////////////////////////////////////////////////
////// animate through areas for each curve ///////
///////////////////////////////////////////////////
if(animate && animate !== "false") {
//sort tprVariables ascending by AUC
var tprVariablesAscByAUC = tprVariables.sort(function(a, b) {
return a.auc - b.auc;
})
console.log("tprVariablesAscByAUC", tprVariablesAscByAUC);
for(var i = 0; i < tprVariablesAscByAUC.length; i++) {
areaID = "#" + tprVariablesAscByAUC[i]["name"] + "Area";
svg.select(areaID)
.transition()
.delay(2000 * (i+1))
.duration(250)
.style("opacity", .4)
.transition()
.delay(2000 * (i+2))
.duration(250)
.style("opacity", 0)
textClass = "." + tprVariablesAscByAUC[i]["name"] + "text";
svg.selectAll(textClass)
.transition()
.delay(2000 * (i+1))
.duration(250)
.style("opacity", .9)
.transition()
.delay(2000 * (i+2))
.duration(250)
.style("opacity", 0)
}
}
///////////////////////////////////////////////////
///////////////////////////////////////////////////
///////////////////////////////////////////////////
function generatePoints(data, x, y) {
var points = [];
data.forEach(function(d){
points.push([ Number(d[x]), Number(d[y]) ])
})
return points;
}
// numerical integration
function calculateArea(points) {
var area = 0.0;
var length = points.length;
if (length <= 2) {
return area;
}
points.forEach(function(d, i) {
var x = 0,
y = 1;
if('undefined' !== typeof points[i-1]){
area += (points[i][x] - points[i-1][x]) * (points[i-1][y] + points[i][y]) / 2;
}
});
return area;
}
} // rocChart
|
micahstubbs/experiments
|
roc-chart/15/rocChart.js
|
JavaScript
|
mit
| 9,677 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_72) on Sat Nov 22 23:36:42 CET 2014 -->
<title>Uses of Class org.maltparser.core.helper.SystemLogger (MaltParser 1.8.1)</title>
<meta name="date" content="2014-11-22">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.maltparser.core.helper.SystemLogger (MaltParser 1.8.1)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../org/maltparser/core/helper/SystemLogger.html" title="class in org.maltparser.core.helper">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><b>MaltParser 1.8.1</b></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/maltparser/core/helper/class-use/SystemLogger.html" target="_top">Frames</a></li>
<li><a href="SystemLogger.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.maltparser.core.helper.SystemLogger" class="title">Uses of Class<br>org.maltparser.core.helper.SystemLogger</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../org/maltparser/core/helper/SystemLogger.html" title="class in org.maltparser.core.helper">SystemLogger</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.maltparser.core.helper">org.maltparser.core.helper</a></td>
<td class="colLast">
<div class="block">Provides classes of various kinds that not fit into another package.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.maltparser.core.helper">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/maltparser/core/helper/SystemLogger.html" title="class in org.maltparser.core.helper">SystemLogger</a> in <a href="../../../../../org/maltparser/core/helper/package-summary.html">org.maltparser.core.helper</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/maltparser/core/helper/package-summary.html">org.maltparser.core.helper</a> that return <a href="../../../../../org/maltparser/core/helper/SystemLogger.html" title="class in org.maltparser.core.helper">SystemLogger</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/maltparser/core/helper/SystemLogger.html" title="class in org.maltparser.core.helper">SystemLogger</a></code></td>
<td class="colLast"><span class="strong">SystemLogger.</span><code><strong><a href="../../../../../org/maltparser/core/helper/SystemLogger.html#instance()">instance</a></strong>()</code>
<div class="block">Returns a reference to the single instance.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../org/maltparser/core/helper/SystemLogger.html" title="class in org.maltparser.core.helper">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><b>MaltParser 1.8.1</b></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/maltparser/core/helper/class-use/SystemLogger.html" target="_top">Frames</a></li>
<li><a href="SystemLogger.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright 2007-2014 Johan Hall, Jens Nilsson and Joakim Nivre.</small></p>
</body>
</html>
|
runelk/maltnob
|
tools/maltparser-1.8.1/docs/api/org/maltparser/core/helper/class-use/SystemLogger.html
|
HTML
|
mit
| 6,582 |
<!DOCTYPE html>
<html>
<head>
<title>Physics triggers test</title>
<style>
#goo {
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<script src="../../../../lib/cannon/cannon.min.js"></script>
<script src="../../../../lib/goo.js"></script>
<script src="../../../../lib/physicspack.js"></script>
<script src="../../../lib/RNG.js"></script>
<script src="../../../lib/purl.js"></script>
<script src="../../../lib/V.js"></script>
<script src="../../../lib/vtest.js"></script>
<script src="physics-triggers-vtest.js"></script>
</body>
</html>
|
GooTechnologies/goojs
|
visual-test/goo/addons/physicspack/physics-triggers-vtest.html
|
HTML
|
mit
| 750 |
namespace Nancy
{
using System.Collections.Generic;
using System.ComponentModel;
using Nancy.ModelBinding;
using Nancy.Responses.Negotiation;
using Nancy.Routing;
using Nancy.Validation;
using Nancy.ViewEngines;
/// <summary>
/// Nancy module base interface
/// Defines all the properties / behaviour needed by Nancy internally
/// </summary>
public interface INancyModule
{
/// <summary><para>
/// The post-request hook
/// </para><para>
/// The post-request hook is called after the response is created by the route execution.
/// It can be used to rewrite the response or add/remove items from the context.
/// </para></summary>
AfterPipeline After { get; set; }
/// <summary><para>
/// The pre-request hook
/// </para><para>
/// The PreRequest hook is called prior to executing a route. If any item in the
/// pre-request pipeline returns a response then the route is not executed and the
/// response is returned.
/// </para></summary>
BeforePipeline Before { get; set; }
/// <summary><para>
/// The error hook
/// </para><para>
/// The error hook is called if an exception is thrown at any time during executing
/// the PreRequest hook, a route and the PostRequest hook. It can be used to set
/// the response and/or finish any ongoing tasks (close database session, etc).
/// </para></summary>
ErrorPipeline OnError { get; set; }
/// <summary>
/// Gets or sets the current Nancy context
/// </summary><value>A <see cref="T:Nancy.NancyContext" /> instance.</value>
NancyContext Context { get; set; }
/// <summary>
/// An extension point for adding support for formatting response contents.
/// </summary><value>This property will always return <see langword="null" /> because it acts as an extension point.</value><remarks>Extension methods to this property should always return <see cref="P:Nancy.NancyModuleBase.Response" /> or one of the types that can implicitly be types into a <see cref="P:Nancy.NancyModuleBase.Response" />.</remarks>
IResponseFormatter Response { get; set; }
/// <summary>
/// Gets or sets the model binder locator
/// </summary>
IModelBinderLocator ModelBinderLocator { get; set; }
/// <summary>
/// Gets or sets the model validation result
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
ModelValidationResult ModelValidationResult { get; set; }
/// <summary>
/// Gets or sets the validator locator.
/// </summary>
IModelValidatorLocator ValidatorLocator { get; set; }
/// <summary>
/// Gets or sets an <see cref="Request" /> instance that represents the current request.
/// </summary><value>An <see cref="Request" /> instance.</value>
Request Request { get; set; }
/// <summary>
/// The extension point for accessing the view engines in Nancy.
/// </summary><value>An <see cref="T:Nancy.ViewEngines.IViewFactory" /> instance.</value><remarks>This is automatically set by Nancy at runtime.</remarks>
IViewFactory ViewFactory { get; set; }
/// <summary>
/// Get the root path of the routes in the current module.
/// </summary><value>A <see cref="T:System.String" /> containing the root path of the module or <see langword="null" /> if no root path should be used.</value><remarks>All routes will be relative to this root path.</remarks>
string ModulePath { get; }
/// <summary>
/// Gets all declared routes by the module.
/// </summary><value>A <see cref="T:System.Collections.Generic.IEnumerable`1" /> instance, containing all <see cref="T:Nancy.Routing.Route" /> instances declared by the module.</value>
IEnumerable<Route> Routes { get; }
/// <summary>
/// Gets or sets the dynamic object used to locate text resources.
/// </summary>
dynamic Text { get; }
/// <summary>
/// Renders a view from inside a route handler.
/// </summary>
/// <value>A <see cref="ViewRenderer"/> instance that is used to determin which view that should be rendered.</value>
ViewRenderer View { get; }
/// <summary>
/// Used to negotiate the content returned based on Accepts header.
/// </summary>
/// <value>A <see cref="Negotiator"/> instance that is used to negotiate the content returned.</value>
Negotiator Negotiate { get; }
}
}
|
Crisfole/Nancy
|
src/Nancy/INancyModule.cs
|
C#
|
mit
| 4,831 |
import { moduleFor, test } from 'ember-qunit'
moduleFor('route:index', 'Unit | Route | index', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
})
test('it exists', function(assert) {
let route = this.subject()
assert.ok(route)
})
|
leo/angefeuert
|
tests/unit/routes/index-test.js
|
JavaScript
|
mit
| 283 |
<?php return unserialize('a:2:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Entity":2:{s:15:"repositoryClass";N;s:8:"readOnly";b:0;}i:1;O:26:"Doctrine\\ORM\\Mapping\\Table":5:{s:4:"name";s:13:"ArticleImages";s:6:"schema";N;s:7:"indexes";N;s:17:"uniqueConstraints";N;s:7:"options";a:0:{}}}');
|
levfurtado/scoops
|
cache/prod/annotations/f34f3820d9c0f3513166905524327d3d863cff53.cache.php
|
PHP
|
mit
| 280 |
https://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=8857
|
andrewdefries/ToxCast
|
Figure4/Tox21_PCIDs/PCID_8857.html
|
HTML
|
mit
| 62 |
namespace Digimezzo.Utilities.Win32
{
public enum TaskbarPosition
{
Unknown = -1,
Left,
Top,
Right,
Bottom,
}
}
|
PeoLeser/Utilities
|
Digimezzo.Utilities/Win32/TaskbarPosition.cs
|
C#
|
mit
| 167 |
require 'locomotive/mongoid/document'
require 'locomotive/mongoid/model_extensions'
require 'locomotive/mongoid/patches'
|
kolach/locomotive_cms
|
lib/locomotive/mongoid.rb
|
Ruby
|
mit
| 120 |
use std::io;
use std::io::prelude::*;
use std::path::Path;
use std::fs::{self, File};
use gb_emu::cart::SaveFile;
pub struct LocalSaveWrapper<'a> {
pub path: &'a Path,
}
impl<'a> SaveFile for LocalSaveWrapper<'a> {
fn load(&mut self, data: &mut [u8]) {
if let Ok(_) = File::open(&self.path).map(|mut f| f.read(data)) {
println!("Loaded {}", self.path.display());
}
}
fn save(&mut self, data: &[u8]) {
// First create a temporary file and write to that, to ensure that if an error occurs, the
// old file is not lost.
let tmp_path = self.path.with_extension("sav.tmp");
if let Err(e) = File::create(&tmp_path).map(|mut f| f.write_all(data)) {
println!("An error occured when writing the save file: {}", e);
return;
}
// At this stage the new save file has been successfully written, so we can safely remove
// the old file if it exists.
match fs::remove_file(&self.path) {
Ok(_) => {},
Err(ref e) if e.kind() == io::ErrorKind::NotFound => {},
Err(e) => {
println!("Error removing old save file ({}), current save has been written to: {}",
e, tmp_path.display());
return;
},
}
// Now rename the temporary file to the correct name
if let Err(e) = fs::rename(&tmp_path, &self.path) {
println!("Error renaming temporary save file: {}", e);
}
}
}
|
quvarxa/pikemon
|
client/src/save.rs
|
Rust
|
mit
| 1,527 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/** Defines values for FirewallPolicyFilterRuleCollectionActionType. */
public final class FirewallPolicyFilterRuleCollectionActionType
extends ExpandableStringEnum<FirewallPolicyFilterRuleCollectionActionType> {
/** Static value Allow for FirewallPolicyFilterRuleCollectionActionType. */
public static final FirewallPolicyFilterRuleCollectionActionType ALLOW = fromString("Allow");
/** Static value Deny for FirewallPolicyFilterRuleCollectionActionType. */
public static final FirewallPolicyFilterRuleCollectionActionType DENY = fromString("Deny");
/**
* Creates or finds a FirewallPolicyFilterRuleCollectionActionType from its string representation.
*
* @param name a name to look for.
* @return the corresponding FirewallPolicyFilterRuleCollectionActionType.
*/
@JsonCreator
public static FirewallPolicyFilterRuleCollectionActionType fromString(String name) {
return fromString(name, FirewallPolicyFilterRuleCollectionActionType.class);
}
/** @return known FirewallPolicyFilterRuleCollectionActionType values. */
public static Collection<FirewallPolicyFilterRuleCollectionActionType> values() {
return values(FirewallPolicyFilterRuleCollectionActionType.class);
}
}
|
selvasingh/azure-sdk-for-java
|
sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyFilterRuleCollectionActionType.java
|
Java
|
mit
| 1,601 |
package com.print_stack_trace.voogasalad.controller.guiElements.userInputTypes.goal;
import com.print_stack_trace.voogasalad.controller.guiElements.gameObjects.GameObject;
import com.print_stack_trace.voogasalad.controller.guiElements.gameObjects.GoalObject;
import com.print_stack_trace.voogasalad.controller.guiElements.userInputTypes.CharacteristicController;
import com.print_stack_trace.voogasalad.controller.guiElements.userInputTypes.UserInputText;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.EventHandler;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
public abstract class GoalCharacteristicController extends CharacteristicController{
public GoalCharacteristicController(String[] values, double width, double height, double x, double y, GameObject object){
super(values, width, height, x, y, object);
}
abstract protected void populateDefaultText();
abstract protected void setCharacteristic(String newValue);
protected boolean isNull(){
return (((GoalObject) mySprite).getCharacteristics()==null);
}
protected void setObservable(SimpleIntegerProperty simpleIntProperty){
simpleIntProperty.addListener(new ChangeListener<Number>(){
@Override
public void changed(ObservableValue<? extends Number> arg0,
Number arg1,Number arg2) {
myTextBox.setText(arg2.doubleValue()+"");
}
});
}
}
|
JustinCarrao/voogasalad-final
|
src/com/print_stack_trace/voogasalad/controller/guiElements/userInputTypes/goal/GoalCharacteristicController.java
|
Java
|
mit
| 1,564 |
# gatsby-plugin-stylus
Provides drop-in support for Stylus with or without CSS Modules
## Install
`yarn add gatsby-plugin-stylus`
## How to use
1. Include the plugin in your `gatsby-config.js` file.
2. Write your stylesheets in Stylus (`.styl` files) and require/import them
### Without CSS Modules
```javascript
// in gatsby-config.js
plugins: [
`gatsby-plugin-stylus`
]
```
### With CSS Modules
Using CSS modules requires no additional configuration. Simply prepend `.module` to the extension. For example: `App.styl` -> `App.module.styl`. Any file with the `module` extension will use CSS modules.
### With Stylus plugins
This plugin has the same API as [stylus-loader](https://github.com/shama/stylus-loader#stylus-plugins), which means you can add stylus plugins with `use`:
```javascript
// in gatsby-config.js
const rupture = require('rupture');
module.exports = {
plugins: [
{
resolve: 'gatsby-plugin-stylus',
options: {
use: [rupture()],
},
},
],
};
```
|
mickeyreiss/gatsby
|
packages/gatsby-plugin-stylus/README.md
|
Markdown
|
mit
| 1,016 |
import mongoose from 'mongoose'
import timestamps from 'mongoose-timestamp'
import deepPopulate from 'mongoose-deep-populate'
const Schema = mongoose.Schema
const CommentSchema = new Schema({
author: {
type: Schema.Types.ObjectId,
ref: 'User',
},
post: {
type: Schema.Types.ObjectId,
ref: 'Post',
},
content: {
type: String,
required: true,
},
})
CommentSchema.plugin(timestamps)
CommentSchema.plugin(deepPopulate(mongoose))
export default mongoose.model('Comment', CommentSchema)
|
DomaLu/fcc-taipei-X
|
server/models/comments.js
|
JavaScript
|
mit
| 521 |
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
describe "Thread#alive?" do
it "can check it's own status" do
ThreadSpecs.status_of_current_thread.alive?.should == true
end
it "describes a running thread" do
ThreadSpecs.status_of_running_thread.alive?.should == true
end
it "describes a sleeping thread" do
ThreadSpecs.status_of_sleeping_thread.alive?.should == true
end
it "describes a blocked thread" do
ThreadSpecs.status_of_blocked_thread.alive?.should == true
end
it "describes a completed thread" do
ThreadSpecs.status_of_completed_thread.alive?.should == false
end
it "describes a killed thread" do
ThreadSpecs.status_of_killed_thread.alive?.should == false
end
it "describes a thread with an uncaught exception" do
ThreadSpecs.status_of_thread_with_uncaught_exception.alive?.should == false
end
it "describes a dying running thread" do
ThreadSpecs.status_of_dying_running_thread.alive?.should == true
end
it "describes a dying sleeping thread" do
ThreadSpecs.status_of_dying_sleeping_thread.alive?.should == true
end
it "returns true for a killed but still running thread" do
exit = false
t = Thread.new do
begin
sleep
ensure
Thread.pass until exit
end
end
ThreadSpecs.spin_until_sleeping(t)
t.kill
t.alive?.should == true
exit = true
t.join
end
end
|
pmq20/ruby-compiler
|
ruby/spec/ruby/core/thread/alive_spec.rb
|
Ruby
|
mit
| 1,437 |
---
title: Pakrikštyti su Moze
date: 05/09/2021
---
`1. Perskaitykite 1 Kor 10, 1–11. Ką Paulius norėjo pasakyti savo skaitytojams Korinte, pateikdamas pavyzdį?`
Graikiškas terminas, pavartotas 1 Kor 10, 6 (ir 1 Kor 10, 11), daugumoje vertimų yra – „pavyzdys“ (typos). Anglų kalboje žodis tipas yra pagrįstas šiuo graikų kalbos daiktavardžiu. Tipas (ar pavyzdys) niekada nėra originalas, bet tam tikras simbolis ar originalo atvaizdas. Tai yra kažko kito pavyzdys.
Hbr 8, 5 yra geras pavyzdys tokio pobūdžio santykiui: „Tie žmonės [Senojo Testamento šventykloje tarnavę kunigai] tarnauja dangiškųjų dalykų paveikslui ir šešėliui, panašiai kaip buvo pamokytas Mozė, kai rengėsi statyti padangtę: Žiūrėk, – sakyta jam, – kad viską padarytum pagal tą pavyzdį, kuris tau buvo parodytas ant kalno“.
Ši eilutė hebrajų kalboje pabrėžia tiesioginį ryšį tarp dangiškosios ir žemiškosios tikrovės, o tada joje cituojama Iš 25, 9, kur Dievas liepė Mozei pastatyti padangtę (pagal tą pavyzdį), kurį jis matė ant kalno. Esmė ta, kad žemiškoji šventykla su visomis apeigomis ir tvarkomis buvo pavyzdys, simbolis to, kas vyksta danguje, kur Jėzus yra mūsų Vyriausiasis Kunigas dangiškoje šventykloje.
Turėdami tai omenyje, galime geriau suprasti, apie ką Paulius rašė 1 Korintiečiams 10. Šiose eilutėse Paulius apžvelgė kai kuriuos pagrindinius Dievo tautos patyrimus dykumoje pakeliui į Pažadėtąjį kraštą. „Mūsų protėviai“ reiškia jų protėvius žydus, kurie išėjo iš Egipto, laikėsi po debesiu, perėjo jūrą ir visi buvo pakrikštyti naujam gyvenimui, laisvam nuo vergijos.
Paulius šiuos svarbius stabtelėjimus dykumos kelionėje laiko asmeninio krikšto pavyzdžiu ar tipu. Laikantis Pauliaus supratimo, nuoroda į dvasinį maistą turi reikšti maną (palyginkite su Iš 16, 31–35). Izraelis gėrė iš uolos, kurią Paulius įvardija Kristumi (1 Kor 10, 4). Pagalvokime, pavyzdžiui, apie Jėzų kaip apie gyvybės duoną (Jn 6, 48) ir kaip apie gyvąjį vandenį (Jn 4, 10), ir visa tai suprantama. Taigi Paulius čia naudoja Senojo Testamento istoriją kaip pavyzdį dvasinėms tiesoms atskleisti, kurį šiandien galima pritaikyti atskiriems krikščionims.
`Pagalvokite apie izraelitų išėjimo patyrimą. Kokių dvasinių pamokų galime įžvelgti jų pavyzdyje – ir gerame, ir blogame, kurį jie mums paliko?`
|
imasaru/sabbath-school-lessons
|
src/lt/2021-03/11/02.md
|
Markdown
|
mit
| 2,448 |
<?php
//if (!$modx->hasPermission('quip.comment_approve')) return $modx->error->failure($modx->lexicon('access_denied'));
$config = $modx->migx->customconfigs;
$prefix = $config['prefix'];
$packageName = $config['packageName'];
$packagepath = $modx->getOption('core_path') . 'components/' . $packageName .
'/';
$modelpath = $packagepath . 'model/';
$modx->addPackage($packageName, $modelpath, $prefix);
$classname = $config['classname'];
if (empty($scriptProperties['objects'])) {
return $modx->error->failure($modx->lexicon('quip.comment_err_ns'));
}
$objectIds = explode(',',$scriptProperties['objects']);
foreach ($objectIds as $id) {
$object = $modx->getObject($classname,$id);
if ($object == null) continue;
switch ($scriptProperties['task']) {
case 'publish':
$object->set('published','1');
$object->set('publishedon',strftime('%Y-%m-%d %H:%M:%S'));
$object->set('publishedby',$modx->user->get('id'));
break;
case 'delete':
$object->set('deleted','1');
$object->set('deletedon',strftime('%Y-%m-%d %H:%M:%S'));
$object->set('deletedby',$modx->user->get('id'));
break;
case 'unpublish':
$object->set('unpublishedon', strftime('%Y-%m-%d %H:%M:%S'));
$object->set('published', '0');
$object->set('unpublishedby',$modx->user->get('id'));//feld fehlt noch
break;
default:
break;
}
if ($object->save() === false) {
return $modx->error->failure($modx->lexicon('quip.comment_err_save'));
}
}
return $modx->error->success();
|
raadhuis/modx-basic
|
core/components/migx/processors/mgr/resourceconnections/bulkupdate.php
|
PHP
|
mit
| 1,615 |
namespace Vk.Api.Schema.Parameters.Poll
{
/// <summary>
/// Интерфейс для представления объекта, содержащего варианты ответов,
/// которые необходимо отредактировать
/// </summary>
public interface IPollEditAnswerVariant
{
/// <summary>
/// Идентификатор ответа
/// </summary>
string Id { get; set; }
/// <summary>
/// Новый текст ответа
/// </summary>
string Text { get; set; }
}
}
|
prvacy/Vk.Api.Schema
|
src/Vk.Api.Schema/Parameters/Poll/IPollEditAnswerVariant.cs
|
C#
|
mit
| 605 |
<?php
/*
* This file is part of Media-Alchemyst.
*
* (c) Alchemy <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace MediaAlchemyst\Specification;
use FFMpeg\Filters\Video\ResizeFilter;
use MediaAlchemyst\Exception\InvalidArgumentException;
class Video extends Audio
{
protected $width;
protected $height;
protected $videoCodec;
protected $resizeMode = self::RESIZE_MODE_INSET;
protected $GOPSize;
protected $framerate;
protected $kiloBitrate;
const RESIZE_MODE_FIT = ResizeFilter::RESIZEMODE_FIT;
const RESIZE_MODE_INSET = ResizeFilter::RESIZEMODE_INSET;
public function getType()
{
return self::TYPE_VIDEO;
}
public function setResizeMode($mode)
{
if ( ! in_array($mode, array(self::RESIZE_MODE_INSET, self::RESIZE_MODE_FIT))) {
throw new InvalidArgumentException('Invalid resize mode');
}
$this->resizeMode = $mode;
}
public function getResizeMode()
{
return $this->resizeMode;
}
public function setVideoCodec($audioCodec)
{
$this->videoCodec = $audioCodec;
}
public function getVideoCodec()
{
return $this->videoCodec;
}
public function setDimensions($width, $height)
{
$this->width = $width;
$this->height = $height;
}
public function getWidth()
{
return $this->width;
}
public function getHeight()
{
return $this->height;
}
public function getGOPSize()
{
return $this->GOPSize;
}
public function setGOPSize($GOPSize)
{
$this->GOPSize = $GOPSize;
}
public function getFramerate()
{
return $this->framerate;
}
public function setFramerate($framerate)
{
$this->framerate = $framerate;
}
public function setKiloBitrate($kiloBitrate)
{
$this->kiloBitrate = $kiloBitrate;
}
public function getKiloBitrate()
{
return $this->kiloBitrate;
}
}
|
marclaporte/Media-Alchemyst
|
src/MediaAlchemyst/Specification/Video.php
|
PHP
|
mit
| 2,129 |
dotnet run -c Release
|
dadhi/ImTools
|
playground/ImTools.Benchmarks/bm.bat
|
Batchfile
|
mit
| 21 |
require 'spec_helper'
describe 'Defining many-to-one association' do
include_context 'users and tasks'
before do
conn[:users].insert id: 2, name: 'Jane'
conn[:tasks].insert id: 2, user_id: 2, title: 'Task one'
end
it 'extends relation with association methods' do
setup.relation(:tasks) do
many_to_one :users, key: :user_id, on: { name: 'Piotr' }
def all
select(:id, :title)
end
def with_user
association_join(:users, select: [:name])
end
end
setup.mappers do
define(:tasks)
define(:with_user, parent: :tasks) do
wrap :user do
attribute :name
end
end
end
setup.relation(:users)
tasks = rom.relations.tasks
expect(tasks.all.with_user.to_a).to eql(
[{ id: 1, name: 'Piotr', title: 'Finish ROM' }]
)
expect(rom.relation(:tasks).map_with(:with_user).all.with_user.to_a).to eql(
[{ id: 1, title: 'Finish ROM', user: { name: 'Piotr' } }]
)
end
it "joins on specified key" do
setup.relation(:task_tags) do
many_to_one :tags, key: :tag_id
def with_tags
association_left_join(:tags)
end
end
expect(rom.relation(:task_tags).with_tags.to_a).to eq(
[{ tag_id: 1, task_id: 1, id: 1, name: "important" }]
)
end
end
|
jamesmoriarty/rom-sql
|
spec/unit/many_to_one_spec.rb
|
Ruby
|
mit
| 1,327 |
<ng-container key="column-chooser.tpl.html" [context]="context"></ng-container>
|
azkurban/ng2
|
projects/ngx-qgrid-plugins/src/lib/colum-chooser/column-chooser.component.html
|
HTML
|
mit
| 80 |
<!-- Begin Direction Details-->
<section id="direction-details" class="direction-details">
<div class="content-wrapper">
<section class="image-section standart-height" style="background-image: url('{{ site.baseurl }}/img/direction-details.jpg');">
<h3>{{ site.directionDetailsTitle }}</h3>
</section>
<div class="row">
<div class="col-lg-10 col-lg-offset-1 text-left same-height-wrapper">
{% assign animationDelay = 0 %}
{% for card in site.directionDetailsCards %}
{% assign colWidth = 12 | divided_by: forloop.length %}
<div class="col-md-{{ colWidth }} col-xs-12 same-height animated hiding" data-animation="fadeInDown" data-delay="{{ animationDelay }}">
<div class="card">
<h4>{{ card.title }}</h4>
<p>{{ card.information }}</p>
</div>
</div>
{% assign animationDelay = animationDelay | plus:500 %}
{% endfor %}
</div>
</div>
</div>
</section>
<!-- End Direction Details -->
|
bruno-rodrigues/devfestgoias
|
_includes/direction-details.html
|
HTML
|
mit
| 1,155 |
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "ProceduralMeshComponent.h"
#include "MyActor.generated.h"
UCLASS()
class PROCEDURALMESH_API AMyActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AMyActor();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
UPROPERTY(VisibleAnywhere,BlueprintReadWrite)
UProceduralMeshComponent* CustomMesh;
/* The vertices of the mesh */
TArray<FVector> Vertices;
/* The triangles of the mesh */
TArray<int32> Triangles;
/* Creates a triangle that connects the given vertices */
void AddTriangle(int32 V1, int32 V2, int32 V3);
void GenerateCubeMesh();
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
};
|
orfeasel/UE4-Cpp-Tutorials
|
ProceduralMesh/MyActor.h
|
C
|
mit
| 899 |
<?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Route;
use Sonata\AdminBundle\Admin\AdminInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;
/**
* @author Thomas Rabaix <[email protected]>
*/
class DefaultRouteGenerator implements RouteGeneratorInterface
{
/**
* @var RouterInterface
*/
private $router;
/**
* @var RoutesCache
*/
private $cache;
/**
* @var array
*/
private $caches = [];
/**
* @var string[]
*/
private $loaded = [];
public function __construct(RouterInterface $router, RoutesCache $cache)
{
$this->router = $router;
$this->cache = $cache;
}
public function generate($name, array $parameters = [], $absolute = UrlGeneratorInterface::ABSOLUTE_PATH)
{
return $this->router->generate($name, $parameters, $absolute);
}
public function generateUrl(
AdminInterface $admin,
$name,
array $parameters = [],
$absolute = UrlGeneratorInterface::ABSOLUTE_PATH
) {
$arrayRoute = $this->generateMenuUrl($admin, $name, $parameters, $absolute);
return $this->router->generate($arrayRoute['route'], $arrayRoute['routeParameters'], $arrayRoute['routeAbsolute']);
}
public function generateMenuUrl(
AdminInterface $admin,
$name,
array $parameters = [],
$absolute = UrlGeneratorInterface::ABSOLUTE_PATH
) {
// if the admin is a child we automatically append the parent's id
if ($admin->isChild() && $admin->hasRequest()) {
// twig template does not accept variable hash key ... so cannot use admin.idparameter ...
// switch value
if (isset($parameters['id'])) {
$parameters[$admin->getIdParameter()] = $parameters['id'];
unset($parameters['id']);
}
for ($parentAdmin = $admin->getParent(); null !== $parentAdmin; $parentAdmin = $parentAdmin->getParent()) {
$parameters[$parentAdmin->getIdParameter()] = $admin->getRequest()->attributes->get($parentAdmin->getIdParameter());
}
}
// if the admin is linked to a parent FieldDescription (ie, embedded widget)
if ($admin->hasParentFieldDescription()) {
// merge link parameter if any provided by the parent field
$parameters = array_merge($parameters, $admin->getParentFieldDescription()->getOption('link_parameters', []));
$parameters['uniqid'] = $admin->getUniqid();
$parameters['code'] = $admin->getCode();
$parameters['pcode'] = $admin->getParentFieldDescription()->getAdmin()->getCode();
$parameters['puniqid'] = $admin->getParentFieldDescription()->getAdmin()->getUniqid();
}
if ('update' == $name || '|update' == substr($name, -7)) {
$parameters['uniqid'] = $admin->getUniqid();
$parameters['code'] = $admin->getCode();
}
// allows to define persistent parameters
if ($admin->hasRequest()) {
$parameters = array_merge($admin->getPersistentParameters(), $parameters);
}
$code = $this->getCode($admin, $name);
if (!array_key_exists($code, $this->caches)) {
throw new \RuntimeException(sprintf('unable to find the route `%s`', $code));
}
return [
'route' => $this->caches[$code],
'routeParameters' => $parameters,
'routeAbsolute' => $absolute,
];
}
public function hasAdminRoute(AdminInterface $admin, $name)
{
return array_key_exists($this->getCode($admin, $name), $this->caches);
}
/**
* @param string $name
*
* @return string
*/
private function getCode(AdminInterface $admin, $name)
{
$this->loadCache($admin);
// someone provide the fullname
if (!$admin->isChild() && array_key_exists($name, $this->caches)) {
return $name;
}
// NEXT_MAJOR: Uncomment the following line.
// $codePrefix = $admin->getBaseCodeRoute();
// NEXT_MAJOR: Remove next 5 lines.
$codePrefix = $admin->getCode();
if ($admin->isChild()) {
$codePrefix = $admin->getBaseCodeRoute();
}
// someone provide a code, so it is a child
if (strpos($name, '.')) {
return $codePrefix.'|'.$name;
}
return $codePrefix.'.'.$name;
}
private function loadCache(AdminInterface $admin)
{
if ($admin->isChild()) {
$this->loadCache($admin->getParent());
} else {
if (in_array($admin->getCode(), $this->loaded)) {
return;
}
$this->caches = array_merge($this->cache->load($admin), $this->caches);
$this->loaded[] = $admin->getCode();
}
}
}
|
ossinkine/SonataAdminBundle
|
src/Route/DefaultRouteGenerator.php
|
PHP
|
mit
| 5,233 |
<?php namespace Jacopo\Authentication\Presenters;
/**
* Class UserPresenter
*
* @author jacopo beschi [email protected]
*/
use Jacopo\Authentication\Presenters\Traits\PermissionTrait;
use Jacopo\Library\Presenters\AbstractPresenter;
class UserPresenter extends AbstractPresenter
{
use PermissionTrait;
}
|
joyhuang-web/laravel-authentication-acl
|
src/Jacopo/Authentication/Presenters/UserPresenter.php
|
PHP
|
mit
| 320 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {Fiber} from './ReactFiber';
import type {StackCursor} from './ReactFiberStack';
import {isFiberMounted} from 'react-reconciler/reflection';
import {disableLegacyContext} from 'shared/ReactFeatureFlags';
import {ClassComponent, HostRoot} from 'shared/ReactWorkTags';
import getComponentName from 'shared/getComponentName';
import invariant from 'shared/invariant';
import checkPropTypes from 'prop-types/checkPropTypes';
import {setCurrentPhase, getCurrentFiberStackInDev} from './ReactCurrentFiber';
import {startPhaseTimer, stopPhaseTimer} from './ReactDebugFiberPerf';
import {createCursor, push, pop} from './ReactFiberStack';
let warnedAboutMissingGetChildContext;
if (__DEV__) {
warnedAboutMissingGetChildContext = {};
}
export const emptyContextObject = {};
if (__DEV__) {
Object.freeze(emptyContextObject);
}
// A cursor to the current merged context object on the stack.
let contextStackCursor: StackCursor<Object> = createCursor(emptyContextObject);
// A cursor to a boolean indicating whether the context has changed.
let didPerformWorkStackCursor: StackCursor<boolean> = createCursor(false);
// Keep track of the previous context object that was on the stack.
// We use this to get access to the parent context after we have already
// pushed the next context provider, and now need to merge their contexts.
let previousContext: Object = emptyContextObject;
function getUnmaskedContext(
workInProgress: Fiber,
Component: Function,
didPushOwnContextIfProvider: boolean,
): Object {
if (disableLegacyContext) {
return emptyContextObject;
} else {
if (didPushOwnContextIfProvider && isContextProvider(Component)) {
// If the fiber is a context provider itself, when we read its context
// we may have already pushed its own child context on the stack. A context
// provider should not "see" its own child context. Therefore we read the
// previous (parent) context instead for a context provider.
return previousContext;
}
return contextStackCursor.current;
}
}
function cacheContext(
workInProgress: Fiber,
unmaskedContext: Object,
maskedContext: Object,
): void {
if (disableLegacyContext) {
return;
} else {
const instance = workInProgress.stateNode;
instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
}
}
function getMaskedContext(
workInProgress: Fiber,
unmaskedContext: Object,
): Object {
if (disableLegacyContext) {
return emptyContextObject;
} else {
const type = workInProgress.type;
const contextTypes = type.contextTypes;
if (!contextTypes) {
return emptyContextObject;
}
// Avoid recreating masked context unless unmasked context has changed.
// Failing to do this will result in unnecessary calls to componentWillReceiveProps.
// This may trigger infinite loops if componentWillReceiveProps calls setState.
const instance = workInProgress.stateNode;
if (
instance &&
instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext
) {
return instance.__reactInternalMemoizedMaskedChildContext;
}
const context = {};
for (let key in contextTypes) {
context[key] = unmaskedContext[key];
}
if (__DEV__) {
const name = getComponentName(type) || 'Unknown';
checkPropTypes(
contextTypes,
context,
'context',
name,
getCurrentFiberStackInDev,
);
}
// Cache unmasked context so we can avoid recreating masked context unless necessary.
// Context is created before the class component is instantiated so check for instance.
if (instance) {
cacheContext(workInProgress, unmaskedContext, context);
}
return context;
}
}
function hasContextChanged(): boolean {
if (disableLegacyContext) {
return false;
} else {
return didPerformWorkStackCursor.current;
}
}
function isContextProvider(type: Function): boolean {
if (disableLegacyContext) {
return false;
} else {
const childContextTypes = type.childContextTypes;
return childContextTypes !== null && childContextTypes !== undefined;
}
}
function popContext(fiber: Fiber): void {
if (disableLegacyContext) {
return;
} else {
pop(didPerformWorkStackCursor, fiber);
pop(contextStackCursor, fiber);
}
}
function popTopLevelContextObject(fiber: Fiber): void {
if (disableLegacyContext) {
return;
} else {
pop(didPerformWorkStackCursor, fiber);
pop(contextStackCursor, fiber);
}
}
function pushTopLevelContextObject(
fiber: Fiber,
context: Object,
didChange: boolean,
): void {
if (disableLegacyContext) {
return;
} else {
invariant(
contextStackCursor.current === emptyContextObject,
'Unexpected context found on stack. ' +
'This error is likely caused by a bug in React. Please file an issue.',
);
push(contextStackCursor, context, fiber);
push(didPerformWorkStackCursor, didChange, fiber);
}
}
function processChildContext(
fiber: Fiber,
type: any,
parentContext: Object,
): Object {
if (disableLegacyContext) {
return parentContext;
} else {
const instance = fiber.stateNode;
const childContextTypes = type.childContextTypes;
// TODO (bvaughn) Replace this behavior with an invariant() in the future.
// It has only been added in Fiber to match the (unintentional) behavior in Stack.
if (typeof instance.getChildContext !== 'function') {
if (__DEV__) {
const componentName = getComponentName(type) || 'Unknown';
if (!warnedAboutMissingGetChildContext[componentName]) {
warnedAboutMissingGetChildContext[componentName] = true;
console.error(
'%s.childContextTypes is specified but there is no getChildContext() method ' +
'on the instance. You can either define getChildContext() on %s or remove ' +
'childContextTypes from it.',
componentName,
componentName,
);
}
}
return parentContext;
}
let childContext;
if (__DEV__) {
setCurrentPhase('getChildContext');
}
startPhaseTimer(fiber, 'getChildContext');
childContext = instance.getChildContext();
stopPhaseTimer();
if (__DEV__) {
setCurrentPhase(null);
}
for (let contextKey in childContext) {
invariant(
contextKey in childContextTypes,
'%s.getChildContext(): key "%s" is not defined in childContextTypes.',
getComponentName(type) || 'Unknown',
contextKey,
);
}
if (__DEV__) {
const name = getComponentName(type) || 'Unknown';
checkPropTypes(
childContextTypes,
childContext,
'child context',
name,
// In practice, there is one case in which we won't get a stack. It's when
// somebody calls unstable_renderSubtreeIntoContainer() and we process
// context from the parent component instance. The stack will be missing
// because it's outside of the reconciliation, and so the pointer has not
// been set. This is rare and doesn't matter. We'll also remove that API.
getCurrentFiberStackInDev,
);
}
return {...parentContext, ...childContext};
}
}
function pushContextProvider(workInProgress: Fiber): boolean {
if (disableLegacyContext) {
return false;
} else {
const instance = workInProgress.stateNode;
// We push the context as early as possible to ensure stack integrity.
// If the instance does not exist yet, we will push null at first,
// and replace it on the stack later when invalidating the context.
const memoizedMergedChildContext =
(instance && instance.__reactInternalMemoizedMergedChildContext) ||
emptyContextObject;
// Remember the parent context so we can merge with it later.
// Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
previousContext = contextStackCursor.current;
push(contextStackCursor, memoizedMergedChildContext, workInProgress);
push(
didPerformWorkStackCursor,
didPerformWorkStackCursor.current,
workInProgress,
);
return true;
}
}
function invalidateContextProvider(
workInProgress: Fiber,
type: any,
didChange: boolean,
): void {
if (disableLegacyContext) {
return;
} else {
const instance = workInProgress.stateNode;
invariant(
instance,
'Expected to have an instance by this point. ' +
'This error is likely caused by a bug in React. Please file an issue.',
);
if (didChange) {
// Merge parent and own context.
// Skip this if we're not updating due to sCU.
// This avoids unnecessarily recomputing memoized values.
const mergedContext = processChildContext(
workInProgress,
type,
previousContext,
);
instance.__reactInternalMemoizedMergedChildContext = mergedContext;
// Replace the old (or empty) context with the new one.
// It is important to unwind the context in the reverse order.
pop(didPerformWorkStackCursor, workInProgress);
pop(contextStackCursor, workInProgress);
// Now push the new context and mark that it has changed.
push(contextStackCursor, mergedContext, workInProgress);
push(didPerformWorkStackCursor, didChange, workInProgress);
} else {
pop(didPerformWorkStackCursor, workInProgress);
push(didPerformWorkStackCursor, didChange, workInProgress);
}
}
}
function findCurrentUnmaskedContext(fiber: Fiber): Object {
if (disableLegacyContext) {
return emptyContextObject;
} else {
// Currently this is only used with renderSubtreeIntoContainer; not sure if it
// makes sense elsewhere
invariant(
isFiberMounted(fiber) && fiber.tag === ClassComponent,
'Expected subtree parent to be a mounted class component. ' +
'This error is likely caused by a bug in React. Please file an issue.',
);
let node = fiber;
do {
switch (node.tag) {
case HostRoot:
return node.stateNode.context;
case ClassComponent: {
const Component = node.type;
if (isContextProvider(Component)) {
return node.stateNode.__reactInternalMemoizedMergedChildContext;
}
break;
}
}
node = node.return;
} while (node !== null);
invariant(
false,
'Found unexpected detached subtree parent. ' +
'This error is likely caused by a bug in React. Please file an issue.',
);
}
}
export {
getUnmaskedContext,
cacheContext,
getMaskedContext,
hasContextChanged,
popContext,
popTopLevelContextObject,
pushTopLevelContextObject,
processChildContext,
isContextProvider,
pushContextProvider,
invalidateContextProvider,
findCurrentUnmaskedContext,
};
|
rickbeerendonk/react
|
packages/react-reconciler/src/ReactFiberContext.js
|
JavaScript
|
mit
| 11,203 |
<?php
namespace DICIT\Encapsulators;
use DICIT\Encapsulator;
use DICIT\Container;
class InterceptorEncapsulator implements Encapsulator
{
public function encapsulate(Container $container, $object, array $serviceConfig)
{
if (array_key_exists('interceptor', $serviceConfig)) {
foreach ($serviceConfig['interceptor'] as $interceptorName) {
$interceptor = $container->resolve($interceptorName);
if (! is_object($interceptor)) {
throw new \RuntimeException(
'The interceptor ' . $interceptorName . ' does not reference a known service');
}
$interceptor->setDecorated($object);
$object = $interceptor;
}
}
return $object;
}
}
|
Evaneos/dic-it
|
src/DICIT/Encapsulators/InterceptorEncapsulator.php
|
PHP
|
mit
| 811 |
package org.reactor.jenkins.command;
import com.offbytwo.jenkins.JenkinsServer;
import com.offbytwo.jenkins.model.Job;
import java.io.IOException;
import java.util.Map;
import org.reactor.AbstractAnnotatedReactor;
import org.reactor.ReactorProcessingException;
import org.reactor.annotation.ReactOn;
import org.reactor.jenkins.response.JobsListResponse;
import org.reactor.request.ReactorRequest;
import org.reactor.response.ReactorResponse;
@ReactOn(value = "jobs", description = "Prints list of all defined jobs")
public class JenkinsJobsReactor extends AbstractAnnotatedReactor<Void> {
JenkinsServer jenkins;
public JenkinsJobsReactor(JenkinsServer jenkins) {
super(Void.class);
this.jenkins = jenkins;
}
@Override
public ReactorResponse doReact(ReactorRequest<Void> request) {
JobsListResponse listResponse = new JobsListResponse();
try {
Map<String, Job> jobs = jenkins.getJobs();
for (Job job : jobs.values()) {
listResponse.addJob(job.details());
}
} catch (IOException e) {
throw new ReactorProcessingException(e);
}
return listResponse;
}
}
|
activey/reactor
|
reactor-lib/reactor-jenkins/src/main/java/org/reactor/jenkins/command/JenkinsJobsReactor.java
|
Java
|
mit
| 1,199 |
# Migration guides
- [Migration from the old `angular-async-local-storage` package to `@ngx-pwa/local-storage`](./docs/MIGRATION_TO_NEW_PACKAGE.md)
- [Migration to version 6](./docs/MIGRATION_TO_V6.md) (for Angular 6 & 7)
- [Migration to version 8](./docs/MIGRATION_TO_V8.md)
- [Migration to version 9](./docs/MIGRATION_TO_V9.md)
- [Migration to version 10](./docs/MIGRATION_TO_V10.md)
- [Migration to version 11](./docs/MIGRATION_TO_V11.md)
- [Migration to version 12](./docs/MIGRATION_TO_V12.md)
- [Migration to version 13](./docs/MIGRATION_TO_V13.md)
[Full changelog available here.](./CHANGELOG.md)
[Back to general documentation](./README.md)
|
cyrilletuzi/angular2-async-local-storage
|
MIGRATION.md
|
Markdown
|
mit
| 651 |
using System.Reflection;
using System.Runtime.InteropServices;
#region Chuck Norris Protection
// ▗▄▄▄▄▄▄▄▟▄▄▄▄▄▄
// ▐██████████████████▙▄▄
// ███████████████████████▄
// ▐████████████████████████▌
// ██████████████████████████
// ▐██████████████████████████▌
// ███████████████████████████▌
// ▗███████████████████████████▀
// ▟███████████████████████████████████▄▄▖
// ▐████████████████████████████████████████▄
// ▄ ▟██████████████████████████████████████████▖
// ▝▙▄▄ ▄▟▄▄▟███████████▀▀▀▀▀▀▀▀▀▜███████████████████
// ▀███████████████▖▀▛▘▀▀▀▐███ ▝▙▄▟███████████████
// ▝▀▜███████████▙ ▀███▛▀ ▗▛████████████████▛
// ▝▀▜████ ▟█▜▜▄ ██▀▀▀▀▚ ▐███████▙▄▝▀██████
// ▝▀█▖▘ ▘▛ ▝ ▐█▀▜██████▌ ▝███▘
// ▘ ▌ ▝██████▄▄▞▀
// ▌▝▀ ▘▌▝ ▟███████▛▀
// ▘ ▗ ▄▘▘▖ ▝ ▗███▀▜███▛▘
// ▗▄▟██████▄▟▄ ▖ ▄████▙
// ▗▗███████▀▀▀▀▘▝▌ ▝▜████▖▀▚▖
// ▝███▙▖▄▄▄▖ ▝▘▄█ ▐███▀▀▘
// ▜██▖ █ ▟███▖
// ▜██████▄▄▄▄▄▖▀ ▟█▛▜▙
// ▜████████▙ ▗███▙▄
// ▜█████▖▄ ▄▀▄ ▗▄▟███████▖
// ▗▟█▘█▄▛▜▜██▙███▙▟███████████████▙
// ▗███▛ ▜███▙▄▄ ▐████████████████████▙▄▄▄
// ▗▄▄▄▄▄▄▄███▛▀▗▄████▌▗▙█████████████████████████████████▄
// ▐█▀ ▄▄██▛▀▗▟██████▙████████████████████████████████████▙▖
// ▐ ▐██▌ ██████████████████████████████████████████████
// ▝ ▝▀▀▘ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
// This assembly is protected by:
// ________ __ _ __ _
// / ____/ /_ __ _______/ /__ / | / /___ __________(_)____
// / / / __ \/ / / / ___/ //_/ / |/ / __ \/ ___/ ___/ / ___/
// / /___/ / / / /_/ / /__/ ,< / /| / /_/ / / / / / (__ )
// \____/_/ /_/\__,_/\___/_/|_| /_/ |_/\____/_/ /_/ /_/____/
#endregion
// This shared assembly info should be used by all projects within the solution.
// This makes sure some properties which should be equal for all projects are managed in one place
// http://blogs.msdn.com/b/jjameson/archive/2009/04/03/shared-assembly-info-in-visual-studio-projects.aspx
[assembly: AssemblyProduct("Skaele Architecture")]
[assembly: AssemblyDescription("Typical application architecture used by Skaele")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Skaele Software Development")]
[assembly: AssemblyCopyright("Copyright © Skaele Software Development 2013")]
[assembly: AssemblyTrademark("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.3.7")]
[assembly: AssemblyFileVersion("1.3.3.7")]
|
dicehead3/mtg-cm
|
SharedAssemblyInfo.cs
|
C#
|
mit
| 5,845 |
<!doctype html>
<html><head>
<title>我是来自HTML的Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
<script>
document.addEventListener("DOMContentLoaded",function() {
goods.ready(function(bridge) {
goods.showNotify({"message":"来自网页的消息"},function(param){
for (var i in param) {
if(param[i]==0){
//alert("设置标题成功");
}else{
// alert("设置标题失败");
}
}
});
});
});
</script>
</head><body>
根据html的title更新vc的title
</body></html>
|
yanghl/webapp
|
webapp2/Example/MSAppModuleWebApp/html/message.html
|
HTML
|
mit
| 1,392 |
/*-------------------------------------------------------------------------
* PIC32MX340F128L processor header
*
* 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 __32MX340F128L_H
#define __32MX340F128L_H
#if defined (__LANGUAGE_C__) || defined (__LANGUAGE_C_PLUS_PLUS)
#ifdef __cplusplus
extern "C" {
#endif
extern volatile unsigned int WDTCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned WDTCLR:1;
unsigned :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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
extern volatile unsigned int IC1BUF __attribute__((section("sfrs")));
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")));
extern volatile unsigned int IC2BUF __attribute__((section("sfrs")));
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")));
extern volatile unsigned int IC3BUF __attribute__((section("sfrs")));
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")));
extern volatile unsigned int IC4BUF __attribute__((section("sfrs")));
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")));
extern volatile unsigned int IC5BUF __attribute__((section("sfrs")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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 I2C1CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1CONSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1CONINV __attribute__((section("sfrs")));
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 I2C1STATCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1STATSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1STATINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1ADD __attribute__((section("sfrs")));
extern volatile unsigned int I2C1ADDCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1ADDSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1ADDINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1MSK __attribute__((section("sfrs")));
extern volatile unsigned int I2C1MSKCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1MSKSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1MSKINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1BRG __attribute__((section("sfrs")));
extern volatile unsigned int I2C1BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1BRGINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1TRN __attribute__((section("sfrs")));
extern volatile unsigned int I2C1TRNCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C1TRNSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C1TRNINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C1RCV __attribute__((section("sfrs")));
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")));
extern volatile unsigned int I2C2CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2CONSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2CONINV __attribute__((section("sfrs")));
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")));
extern volatile unsigned int I2C2STATCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2STATSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2STATINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C2ADD __attribute__((section("sfrs")));
extern volatile unsigned int I2C2ADDCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2ADDSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2ADDINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C2MSK __attribute__((section("sfrs")));
extern volatile unsigned int I2C2MSKCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2MSKSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2MSKINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C2BRG __attribute__((section("sfrs")));
extern volatile unsigned int I2C2BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2BRGINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C2TRN __attribute__((section("sfrs")));
extern volatile unsigned int I2C2TRNCLR __attribute__((section("sfrs")));
extern volatile unsigned int I2C2TRNSET __attribute__((section("sfrs")));
extern volatile unsigned int I2C2TRNINV __attribute__((section("sfrs")));
extern volatile unsigned int I2C2RCV __attribute__((section("sfrs")));
extern volatile unsigned int SPI1CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :5;
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 :1;
unsigned SPIFE:1;
unsigned :11;
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")));
extern volatile unsigned int SPI1STAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SPIRBF:1;
unsigned :2;
unsigned SPITBE:1;
unsigned :2;
unsigned SPIROV:1;
unsigned :4;
unsigned SPIBUSY:1;
};
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")));
extern volatile unsigned int SPI1BUF __attribute__((section("sfrs")));
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")));
extern volatile unsigned int SPI2CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :5;
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 :1;
unsigned SPIFE:1;
unsigned :11;
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")));
extern volatile unsigned int SPI2STAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SPIRBF:1;
unsigned :2;
unsigned SPITBE:1;
unsigned :2;
unsigned SPIROV:1;
unsigned :4;
unsigned SPIBUSY:1;
};
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")));
extern volatile unsigned int SPI2BUF __attribute__((section("sfrs")));
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")));
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")));
extern volatile unsigned int U1MODECLR __attribute__((section("sfrs")));
extern volatile unsigned int U1MODESET __attribute__((section("sfrs")));
extern volatile unsigned int U1MODEINV __attribute__((section("sfrs")));
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")));
extern volatile unsigned int U1STACLR __attribute__((section("sfrs")));
extern volatile unsigned int U1STASET __attribute__((section("sfrs")));
extern volatile unsigned int U1STAINV __attribute__((section("sfrs")));
extern volatile unsigned int U1TXREG __attribute__((section("sfrs")));
extern volatile unsigned int U1RXREG __attribute__((section("sfrs")));
extern volatile unsigned int U1BRG __attribute__((section("sfrs")));
extern volatile unsigned int U1BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int U1BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int U1BRGINV __attribute__((section("sfrs")));
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")));
extern volatile unsigned int U2MODECLR __attribute__((section("sfrs")));
extern volatile unsigned int U2MODESET __attribute__((section("sfrs")));
extern volatile unsigned int U2MODEINV __attribute__((section("sfrs")));
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")));
extern volatile unsigned int U2STACLR __attribute__((section("sfrs")));
extern volatile unsigned int U2STASET __attribute__((section("sfrs")));
extern volatile unsigned int U2STAINV __attribute__((section("sfrs")));
extern volatile unsigned int U2TXREG __attribute__((section("sfrs")));
extern volatile unsigned int U2RXREG __attribute__((section("sfrs")));
extern volatile unsigned int U2BRG __attribute__((section("sfrs")));
extern volatile unsigned int U2BRGCLR __attribute__((section("sfrs")));
extern volatile unsigned int U2BRGSET __attribute__((section("sfrs")));
extern volatile unsigned int U2BRGINV __attribute__((section("sfrs")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
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")));
extern volatile unsigned int AD1CHS __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :16;
unsigned CH0SA:4;
unsigned :3;
unsigned CH0NA:1;
unsigned CH0SB:4;
unsigned :3;
unsigned CH0NB:1;
};
struct {
unsigned :16;
unsigned CH0SA0:1;
unsigned CH0SA1:1;
unsigned CH0SA2:1;
unsigned CH0SA3:1;
unsigned :4;
unsigned CH0SB0:1;
unsigned CH0SB1:1;
unsigned CH0SB2:1;
unsigned CH0SB3: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")));
extern volatile unsigned int AD1CSSL __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CSSL:16;
};
struct {
unsigned CSSL0:1;
unsigned CSSL1:1;
unsigned CSSL2:1;
unsigned CSSL3:1;
unsigned CSSL4:1;
unsigned CSSL5:1;
unsigned CSSL6:1;
unsigned CSSL7:1;
unsigned CSSL8:1;
unsigned CSSL9:1;
unsigned CSSL10:1;
unsigned CSSL11:1;
unsigned CSSL12:1;
unsigned CSSL13:1;
unsigned CSSL14:1;
unsigned CSSL15:1;
};
struct {
unsigned w:32;
};
} __AD1CSSLbits_t;
extern volatile __AD1CSSLbits_t AD1CSSLbits __asm__ ("AD1CSSL") __attribute__((section("sfrs")));
extern volatile unsigned int AD1CSSLCLR __attribute__((section("sfrs")));
extern volatile unsigned int AD1CSSLSET __attribute__((section("sfrs")));
extern volatile unsigned int AD1CSSLINV __attribute__((section("sfrs")));
extern volatile unsigned int AD1PCFG __attribute__((section("sfrs")));
typedef union {
struct {
unsigned PCFG:16;
};
struct {
unsigned PCFG0:1;
unsigned PCFG1:1;
unsigned PCFG2:1;
unsigned PCFG3:1;
unsigned PCFG4:1;
unsigned PCFG5:1;
unsigned PCFG6:1;
unsigned PCFG7:1;
unsigned PCFG8:1;
unsigned PCFG9:1;
unsigned PCFG10:1;
unsigned PCFG11:1;
unsigned PCFG12:1;
unsigned PCFG13:1;
unsigned PCFG14:1;
unsigned PCFG15:1;
};
struct {
unsigned w:32;
};
} __AD1PCFGbits_t;
extern volatile __AD1PCFGbits_t AD1PCFGbits __asm__ ("AD1PCFG") __attribute__((section("sfrs")));
extern volatile unsigned int AD1PCFGCLR __attribute__((section("sfrs")));
extern volatile unsigned int AD1PCFGSET __attribute__((section("sfrs")));
extern volatile unsigned int AD1PCFGINV __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF0 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF1 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF2 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF3 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF4 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF5 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF6 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF7 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF8 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUF9 __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUFA __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUFB __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUFC __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUFD __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUFE __attribute__((section("sfrs")));
extern volatile unsigned int ADC1BUFF __attribute__((section("sfrs")));
extern volatile unsigned int CVRCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CVR:4;
unsigned CVRSS:1;
unsigned CVRR:1;
unsigned CVROE:1;
unsigned :8;
unsigned ON:1;
};
struct {
unsigned CVR0:1;
unsigned CVR1:1;
unsigned CVR2:1;
unsigned CVR3:1;
};
struct {
unsigned w:32;
};
} __CVRCONbits_t;
extern volatile __CVRCONbits_t CVRCONbits __asm__ ("CVRCON") __attribute__((section("sfrs")));
extern volatile unsigned int CVRCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int CVRCONSET __attribute__((section("sfrs")));
extern volatile unsigned int CVRCONINV __attribute__((section("sfrs")));
extern volatile unsigned int CM1CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CCH:2;
unsigned :2;
unsigned CREF:1;
unsigned :1;
unsigned EVPOL:2;
unsigned COUT:1;
unsigned :4;
unsigned CPOL:1;
unsigned COE:1;
unsigned ON:1;
};
struct {
unsigned CCH0:1;
unsigned CCH1:1;
unsigned :4;
unsigned EVPOL0:1;
unsigned EVPOL1:1;
};
struct {
unsigned w:32;
};
} __CM1CONbits_t;
extern volatile __CM1CONbits_t CM1CONbits __asm__ ("CM1CON") __attribute__((section("sfrs")));
extern volatile unsigned int CM1CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int CM1CONSET __attribute__((section("sfrs")));
extern volatile unsigned int CM1CONINV __attribute__((section("sfrs")));
extern volatile unsigned int CM2CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CCH:2;
unsigned :2;
unsigned CREF:1;
unsigned :1;
unsigned EVPOL:2;
unsigned COUT:1;
unsigned :4;
unsigned CPOL:1;
unsigned COE:1;
unsigned ON:1;
};
struct {
unsigned CCH0:1;
unsigned CCH1:1;
unsigned :4;
unsigned EVPOL0:1;
unsigned EVPOL1:1;
};
struct {
unsigned w:32;
};
} __CM2CONbits_t;
extern volatile __CM2CONbits_t CM2CONbits __asm__ ("CM2CON") __attribute__((section("sfrs")));
extern volatile unsigned int CM2CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int CM2CONSET __attribute__((section("sfrs")));
extern volatile unsigned int CM2CONINV __attribute__((section("sfrs")));
extern volatile unsigned int CMSTAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned C1OUT:1;
unsigned C2OUT:1;
unsigned :11;
unsigned SIDL:1;
};
struct {
unsigned w:32;
};
} __CMSTATbits_t;
extern volatile __CMSTATbits_t CMSTATbits __asm__ ("CMSTAT") __attribute__((section("sfrs")));
extern volatile unsigned int CMSTATCLR __attribute__((section("sfrs")));
extern volatile unsigned int CMSTATSET __attribute__((section("sfrs")));
extern volatile unsigned int CMSTATINV __attribute__((section("sfrs")));
extern volatile unsigned int OSCCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned OSWEN:1;
unsigned SOSCEN:1;
unsigned UFRCEN:1;
unsigned CF:1;
unsigned SLPEN:1;
unsigned LOCK:1;
unsigned ULOCK:1;
unsigned CLKLOCK:1;
unsigned NOSC:3;
unsigned :1;
unsigned COSC:3;
unsigned :1;
unsigned PLLMULT:3;
unsigned PBDIV:2;
unsigned :1;
unsigned SOSCRDY:1;
unsigned :1;
unsigned FRCDIV:3;
unsigned PLLODIV:3;
};
struct {
unsigned :8;
unsigned NOSC0:1;
unsigned NOSC1:1;
unsigned NOSC2:1;
unsigned :1;
unsigned COSC0:1;
unsigned COSC1:1;
unsigned COSC2:1;
unsigned :1;
unsigned PLLMULT0:1;
unsigned PLLMULT1:1;
unsigned PLLMULT2:1;
unsigned PBDIV0:1;
unsigned PBDIV1:1;
unsigned :3;
unsigned FRCDIV0:1;
unsigned FRCDIV1:1;
unsigned FRCDIV2:1;
unsigned PLLODIV0:1;
unsigned PLLODIV1:1;
unsigned PLLODIV2:1;
};
struct {
unsigned w:32;
};
} __OSCCONbits_t;
extern volatile __OSCCONbits_t OSCCONbits __asm__ ("OSCCON") __attribute__((section("sfrs")));
extern volatile unsigned int OSCCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int OSCCONSET __attribute__((section("sfrs")));
extern volatile unsigned int OSCCONINV __attribute__((section("sfrs")));
extern volatile unsigned int OSCTUN __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TUN:6;
};
struct {
unsigned TUN0:1;
unsigned TUN1:1;
unsigned TUN2:1;
unsigned TUN3:1;
unsigned TUN4:1;
unsigned TUN5:1;
};
struct {
unsigned w:32;
};
} __OSCTUNbits_t;
extern volatile __OSCTUNbits_t OSCTUNbits __asm__ ("OSCTUN") __attribute__((section("sfrs")));
extern volatile unsigned int OSCTUNCLR __attribute__((section("sfrs")));
extern volatile unsigned int OSCTUNSET __attribute__((section("sfrs")));
extern volatile unsigned int OSCTUNINV __attribute__((section("sfrs")));
extern volatile unsigned int DDPCON __attribute__((section("sfrs")));
typedef struct {
unsigned :2;
unsigned TROEN:1;
unsigned JTAGEN:1;
} __DDPCONbits_t;
extern volatile __DDPCONbits_t DDPCONbits __asm__ ("DDPCON") __attribute__((section("sfrs")));
extern volatile unsigned int DEVID __attribute__((section("sfrs")));
typedef struct {
unsigned DEVID:28;
unsigned VER:4;
} __DEVIDbits_t;
extern volatile __DEVIDbits_t DEVIDbits __asm__ ("DEVID") __attribute__((section("sfrs")));
extern volatile unsigned int SYSKEY __attribute__((section("sfrs")));
extern volatile unsigned int SYSKEYCLR __attribute__((section("sfrs")));
extern volatile unsigned int SYSKEYSET __attribute__((section("sfrs")));
extern volatile unsigned int SYSKEYINV __attribute__((section("sfrs")));
extern volatile unsigned int NVMCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned NVMOP:4;
unsigned :7;
unsigned LVDSTAT:1;
unsigned LVDERR:1;
unsigned WRERR:1;
unsigned WREN:1;
unsigned WR:1;
};
struct {
unsigned NVMOP0:1;
unsigned NVMOP1:1;
unsigned NVMOP2:1;
unsigned NVMOP3:1;
};
struct {
unsigned PROGOP:4;
};
struct {
unsigned PROGOP0:1;
unsigned PROGOP1:1;
unsigned PROGOP2:1;
unsigned PROGOP3:1;
};
struct {
unsigned w:32;
};
} __NVMCONbits_t;
extern volatile __NVMCONbits_t NVMCONbits __asm__ ("NVMCON") __attribute__((section("sfrs")));
extern volatile unsigned int NVMCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int NVMCONSET __attribute__((section("sfrs")));
extern volatile unsigned int NVMCONINV __attribute__((section("sfrs")));
extern volatile unsigned int NVMKEY __attribute__((section("sfrs")));
extern volatile unsigned int NVMADDR __attribute__((section("sfrs")));
extern volatile unsigned int NVMADDRCLR __attribute__((section("sfrs")));
extern volatile unsigned int NVMADDRSET __attribute__((section("sfrs")));
extern volatile unsigned int NVMADDRINV __attribute__((section("sfrs")));
extern volatile unsigned int NVMDATA __attribute__((section("sfrs")));
extern volatile unsigned int NVMSRCADDR __attribute__((section("sfrs")));
extern volatile unsigned int RCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned POR:1;
unsigned BOR:1;
unsigned IDLE:1;
unsigned SLEEP:1;
unsigned WDTO:1;
unsigned :1;
unsigned SWR:1;
unsigned EXTR:1;
unsigned VREGS:1;
unsigned CMR:1;
};
struct {
unsigned w:32;
};
} __RCONbits_t;
extern volatile __RCONbits_t RCONbits __asm__ ("RCON") __attribute__((section("sfrs")));
extern volatile unsigned int RCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int RCONSET __attribute__((section("sfrs")));
extern volatile unsigned int RCONINV __attribute__((section("sfrs")));
extern volatile unsigned int RSWRST __attribute__((section("sfrs")));
typedef union {
struct {
unsigned SWRST:1;
};
struct {
unsigned w:32;
};
} __RSWRSTbits_t;
extern volatile __RSWRSTbits_t RSWRSTbits __asm__ ("RSWRST") __attribute__((section("sfrs")));
extern volatile unsigned int RSWRSTCLR __attribute__((section("sfrs")));
extern volatile unsigned int RSWRSTSET __attribute__((section("sfrs")));
extern volatile unsigned int RSWRSTINV __attribute__((section("sfrs")));
extern volatile unsigned int _DDPSTAT __attribute__((section("sfrs")));
typedef struct {
unsigned :1;
unsigned APIFUL:1;
unsigned APOFUL:1;
unsigned STRFUL:1;
unsigned :5;
unsigned APIOV:1;
unsigned APOOV:1;
unsigned :5;
unsigned STOV:16;
} ___DDPSTATbits_t;
extern volatile ___DDPSTATbits_t _DDPSTATbits __asm__ ("_DDPSTAT") __attribute__((section("sfrs")));
extern volatile unsigned int _STRO __attribute__((section("sfrs")));
extern volatile unsigned int _STROCLR __attribute__((section("sfrs")));
extern volatile unsigned int _STROSET __attribute__((section("sfrs")));
extern volatile unsigned int _STROINV __attribute__((section("sfrs")));
extern volatile unsigned int _APPO __attribute__((section("sfrs")));
extern volatile unsigned int _APPOCLR __attribute__((section("sfrs")));
extern volatile unsigned int _APPOSET __attribute__((section("sfrs")));
extern volatile unsigned int _APPOINV __attribute__((section("sfrs")));
extern volatile unsigned int _APPI __attribute__((section("sfrs")));
extern volatile unsigned int INTCON __attribute__((section("sfrs")));
typedef struct {
unsigned INT0EP:1;
unsigned INT1EP:1;
unsigned INT2EP:1;
unsigned INT3EP:1;
unsigned INT4EP:1;
unsigned :3;
unsigned TPC:3;
unsigned :1;
unsigned MVEC:1;
unsigned :1;
unsigned FRZ:1;
unsigned :1;
unsigned SS0:1;
} __INTCONbits_t;
extern volatile __INTCONbits_t INTCONbits __asm__ ("INTCON") __attribute__((section("sfrs")));
extern volatile unsigned int INTCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int INTCONSET __attribute__((section("sfrs")));
extern volatile unsigned int INTCONINV __attribute__((section("sfrs")));
extern volatile unsigned int INTSTAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned VEC:6;
unsigned :2;
unsigned RIPL:3;
};
struct {
unsigned :8;
unsigned SRIPL:3;
};
} __INTSTATbits_t;
extern volatile __INTSTATbits_t INTSTATbits __asm__ ("INTSTAT") __attribute__((section("sfrs")));
extern volatile unsigned int IPTMR __attribute__((section("sfrs")));
extern volatile unsigned int IPTMRCLR __attribute__((section("sfrs")));
extern volatile unsigned int IPTMRSET __attribute__((section("sfrs")));
extern volatile unsigned int IPTMRINV __attribute__((section("sfrs")));
extern volatile unsigned int IFS0 __attribute__((section("sfrs")));
typedef struct {
unsigned CTIF:1;
unsigned CS0IF:1;
unsigned CS1IF:1;
unsigned INT0IF:1;
unsigned T1IF:1;
unsigned IC1IF:1;
unsigned OC1IF:1;
unsigned INT1IF:1;
unsigned T2IF:1;
unsigned IC2IF:1;
unsigned OC2IF:1;
unsigned INT2IF:1;
unsigned T3IF:1;
unsigned IC3IF:1;
unsigned OC3IF:1;
unsigned INT3IF:1;
unsigned T4IF:1;
unsigned IC4IF:1;
unsigned OC4IF:1;
unsigned INT4IF:1;
unsigned T5IF:1;
unsigned IC5IF:1;
unsigned OC5IF:1;
unsigned SPI1EIF:1;
unsigned SPI1TXIF:1;
unsigned SPI1RXIF:1;
unsigned U1EIF:1;
unsigned U1RXIF:1;
unsigned U1TXIF:1;
unsigned I2C1BIF:1;
unsigned I2C1SIF:1;
unsigned I2C1MIF:1;
} __IFS0bits_t;
extern volatile __IFS0bits_t IFS0bits __asm__ ("IFS0") __attribute__((section("sfrs")));
extern volatile unsigned int IFS0CLR __attribute__((section("sfrs")));
extern volatile unsigned int IFS0SET __attribute__((section("sfrs")));
extern volatile unsigned int IFS0INV __attribute__((section("sfrs")));
extern volatile unsigned int IFS1 __attribute__((section("sfrs")));
typedef struct {
unsigned CNIF:1;
unsigned AD1IF:1;
unsigned PMPIF:1;
unsigned CMP1IF:1;
unsigned CMP2IF:1;
unsigned SPI2EIF:1;
unsigned SPI2TXIF:1;
unsigned SPI2RXIF:1;
unsigned U2EIF:1;
unsigned U2RXIF:1;
unsigned U2TXIF:1;
unsigned I2C2BIF:1;
unsigned I2C2SIF:1;
unsigned I2C2MIF:1;
unsigned FSCMIF:1;
unsigned RTCCIF:1;
unsigned DMA0IF:1;
unsigned DMA1IF:1;
unsigned DMA2IF:1;
unsigned DMA3IF:1;
unsigned :4;
unsigned FCEIF:1;
} __IFS1bits_t;
extern volatile __IFS1bits_t IFS1bits __asm__ ("IFS1") __attribute__((section("sfrs")));
extern volatile unsigned int IFS1CLR __attribute__((section("sfrs")));
extern volatile unsigned int IFS1SET __attribute__((section("sfrs")));
extern volatile unsigned int IFS1INV __attribute__((section("sfrs")));
extern volatile unsigned int IEC0 __attribute__((section("sfrs")));
typedef struct {
unsigned CTIE:1;
unsigned CS0IE:1;
unsigned CS1IE:1;
unsigned INT0IE:1;
unsigned T1IE:1;
unsigned IC1IE:1;
unsigned OC1IE:1;
unsigned INT1IE:1;
unsigned T2IE:1;
unsigned IC2IE:1;
unsigned OC2IE:1;
unsigned INT2IE:1;
unsigned T3IE:1;
unsigned IC3IE:1;
unsigned OC3IE:1;
unsigned INT3IE:1;
unsigned T4IE:1;
unsigned IC4IE:1;
unsigned OC4IE:1;
unsigned INT4IE:1;
unsigned T5IE:1;
unsigned IC5IE:1;
unsigned OC5IE:1;
unsigned SPI1EIE:1;
unsigned SPI1TXIE:1;
unsigned SPI1RXIE:1;
unsigned U1EIE:1;
unsigned U1RXIE:1;
unsigned U1TXIE:1;
unsigned I2C1BIE:1;
unsigned I2C1SIE:1;
unsigned I2C1MIE:1;
} __IEC0bits_t;
extern volatile __IEC0bits_t IEC0bits __asm__ ("IEC0") __attribute__((section("sfrs")));
extern volatile unsigned int IEC0CLR __attribute__((section("sfrs")));
extern volatile unsigned int IEC0SET __attribute__((section("sfrs")));
extern volatile unsigned int IEC0INV __attribute__((section("sfrs")));
extern volatile unsigned int IEC1 __attribute__((section("sfrs")));
typedef struct {
unsigned CNIE:1;
unsigned AD1IE:1;
unsigned PMPIE:1;
unsigned CMP1IE:1;
unsigned CMP2IE:1;
unsigned SPI2EIE:1;
unsigned SPI2TXIE:1;
unsigned SPI2RXIE:1;
unsigned U2EIE:1;
unsigned U2RXIE:1;
unsigned U2TXIE:1;
unsigned I2C2BIE:1;
unsigned I2C2SIE:1;
unsigned I2C2MIE:1;
unsigned FSCMIE:1;
unsigned RTCCIE:1;
unsigned DMA0IE:1;
unsigned DMA1IE:1;
unsigned DMA2IE:1;
unsigned DMA3IE:1;
unsigned :4;
unsigned FCEIE:1;
} __IEC1bits_t;
extern volatile __IEC1bits_t IEC1bits __asm__ ("IEC1") __attribute__((section("sfrs")));
extern volatile unsigned int IEC1CLR __attribute__((section("sfrs")));
extern volatile unsigned int IEC1SET __attribute__((section("sfrs")));
extern volatile unsigned int IEC1INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC0 __attribute__((section("sfrs")));
typedef struct {
unsigned CTIS:2;
unsigned CTIP:3;
unsigned :3;
unsigned CS0IS:2;
unsigned CS0IP:3;
unsigned :3;
unsigned CS1IS:2;
unsigned CS1IP:3;
unsigned :3;
unsigned INT0IS:2;
unsigned INT0IP:3;
} __IPC0bits_t;
extern volatile __IPC0bits_t IPC0bits __asm__ ("IPC0") __attribute__((section("sfrs")));
extern volatile unsigned int IPC0CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC0SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC0INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC1 __attribute__((section("sfrs")));
typedef struct {
unsigned T1IS:2;
unsigned T1IP:3;
unsigned :3;
unsigned IC1IS:2;
unsigned IC1IP:3;
unsigned :3;
unsigned OC1IS:2;
unsigned OC1IP:3;
unsigned :3;
unsigned INT1IS:2;
unsigned INT1IP:3;
} __IPC1bits_t;
extern volatile __IPC1bits_t IPC1bits __asm__ ("IPC1") __attribute__((section("sfrs")));
extern volatile unsigned int IPC1CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC1SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC1INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC2 __attribute__((section("sfrs")));
typedef struct {
unsigned T2IS:2;
unsigned T2IP:3;
unsigned :3;
unsigned IC2IS:2;
unsigned IC2IP:3;
unsigned :3;
unsigned OC2IS:2;
unsigned OC2IP:3;
unsigned :3;
unsigned INT2IS:2;
unsigned INT2IP:3;
} __IPC2bits_t;
extern volatile __IPC2bits_t IPC2bits __asm__ ("IPC2") __attribute__((section("sfrs")));
extern volatile unsigned int IPC2CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC2SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC2INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC3 __attribute__((section("sfrs")));
typedef struct {
unsigned T3IS:2;
unsigned T3IP:3;
unsigned :3;
unsigned IC3IS:2;
unsigned IC3IP:3;
unsigned :3;
unsigned OC3IS:2;
unsigned OC3IP:3;
unsigned :3;
unsigned INT3IS:2;
unsigned INT3IP:3;
} __IPC3bits_t;
extern volatile __IPC3bits_t IPC3bits __asm__ ("IPC3") __attribute__((section("sfrs")));
extern volatile unsigned int IPC3CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC3SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC3INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC4 __attribute__((section("sfrs")));
typedef struct {
unsigned T4IS:2;
unsigned T4IP:3;
unsigned :3;
unsigned IC4IS:2;
unsigned IC4IP:3;
unsigned :3;
unsigned OC4IS:2;
unsigned OC4IP:3;
unsigned :3;
unsigned INT4IS:2;
unsigned INT4IP:3;
} __IPC4bits_t;
extern volatile __IPC4bits_t IPC4bits __asm__ ("IPC4") __attribute__((section("sfrs")));
extern volatile unsigned int IPC4CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC4SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC4INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC5 __attribute__((section("sfrs")));
typedef struct {
unsigned T5IS:2;
unsigned T5IP:3;
unsigned :3;
unsigned IC5IS:2;
unsigned IC5IP:3;
unsigned :3;
unsigned OC5IS:2;
unsigned OC5IP:3;
unsigned :3;
unsigned SPI1IS:2;
unsigned SPI1IP:3;
} __IPC5bits_t;
extern volatile __IPC5bits_t IPC5bits __asm__ ("IPC5") __attribute__((section("sfrs")));
extern volatile unsigned int IPC5CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC5SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC5INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC6 __attribute__((section("sfrs")));
typedef struct {
unsigned U1IS:2;
unsigned U1IP:3;
unsigned :3;
unsigned I2C1IS:2;
unsigned I2C1IP:3;
unsigned :3;
unsigned CNIS:2;
unsigned CNIP:3;
unsigned :3;
unsigned AD1IS:2;
unsigned AD1IP:3;
} __IPC6bits_t;
extern volatile __IPC6bits_t IPC6bits __asm__ ("IPC6") __attribute__((section("sfrs")));
extern volatile unsigned int IPC6CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC6SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC6INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC7 __attribute__((section("sfrs")));
typedef struct {
unsigned PMPIS:2;
unsigned PMPIP:3;
unsigned :3;
unsigned CMP1IS:2;
unsigned CMP1IP:3;
unsigned :3;
unsigned CMP2IS:2;
unsigned CMP2IP:3;
unsigned :3;
unsigned SPI2IS:2;
unsigned SPI2IP:3;
} __IPC7bits_t;
extern volatile __IPC7bits_t IPC7bits __asm__ ("IPC7") __attribute__((section("sfrs")));
extern volatile unsigned int IPC7CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC7SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC7INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC8 __attribute__((section("sfrs")));
typedef struct {
unsigned U2IS:2;
unsigned U2IP:3;
unsigned :3;
unsigned I2C2IS:2;
unsigned I2C2IP:3;
unsigned :3;
unsigned FSCMIS:2;
unsigned FSCMIP:3;
unsigned :3;
unsigned RTCCIS:2;
unsigned RTCCIP:3;
} __IPC8bits_t;
extern volatile __IPC8bits_t IPC8bits __asm__ ("IPC8") __attribute__((section("sfrs")));
extern volatile unsigned int IPC8CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC8SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC8INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC9 __attribute__((section("sfrs")));
typedef struct {
unsigned DMA0IS:2;
unsigned DMA0IP:3;
unsigned :3;
unsigned DMA1IS:2;
unsigned DMA1IP:3;
unsigned :3;
unsigned DMA2IS:2;
unsigned DMA2IP:3;
unsigned :3;
unsigned DMA3IS:2;
unsigned DMA3IP:3;
} __IPC9bits_t;
extern volatile __IPC9bits_t IPC9bits __asm__ ("IPC9") __attribute__((section("sfrs")));
extern volatile unsigned int IPC9CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC9SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC9INV __attribute__((section("sfrs")));
extern volatile unsigned int IPC11 __attribute__((section("sfrs")));
typedef struct {
unsigned FCEIS:2;
unsigned FCEIP:3;
} __IPC11bits_t;
extern volatile __IPC11bits_t IPC11bits __asm__ ("IPC11") __attribute__((section("sfrs")));
extern volatile unsigned int IPC11CLR __attribute__((section("sfrs")));
extern volatile unsigned int IPC11SET __attribute__((section("sfrs")));
extern volatile unsigned int IPC11INV __attribute__((section("sfrs")));
extern volatile unsigned int BMXCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned BMXARB:3;
unsigned :3;
unsigned BMXWSDRM:1;
unsigned :9;
unsigned BMXERRIS:1;
unsigned BMXERRDS:1;
unsigned BMXERRDMA:1;
unsigned BMXERRICD:1;
unsigned BMXERRIXI:1;
unsigned :5;
unsigned BMXCHEDMA:1;
};
struct {
unsigned w:32;
};
} __BMXCONbits_t;
extern volatile __BMXCONbits_t BMXCONbits __asm__ ("BMXCON") __attribute__((section("sfrs")));
extern volatile unsigned int BMXCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int BMXCONSET __attribute__((section("sfrs")));
extern volatile unsigned int BMXCONINV __attribute__((section("sfrs")));
extern volatile unsigned int BMXDKPBA __attribute__((section("sfrs")));
extern volatile unsigned int BMXDKPBACLR __attribute__((section("sfrs")));
extern volatile unsigned int BMXDKPBASET __attribute__((section("sfrs")));
extern volatile unsigned int BMXDKPBAINV __attribute__((section("sfrs")));
extern volatile unsigned int BMXDUDBA __attribute__((section("sfrs")));
extern volatile unsigned int BMXDUDBACLR __attribute__((section("sfrs")));
extern volatile unsigned int BMXDUDBASET __attribute__((section("sfrs")));
extern volatile unsigned int BMXDUDBAINV __attribute__((section("sfrs")));
extern volatile unsigned int BMXDUPBA __attribute__((section("sfrs")));
extern volatile unsigned int BMXDUPBACLR __attribute__((section("sfrs")));
extern volatile unsigned int BMXDUPBASET __attribute__((section("sfrs")));
extern volatile unsigned int BMXDUPBAINV __attribute__((section("sfrs")));
extern volatile unsigned int BMXDRMSZ __attribute__((section("sfrs")));
extern volatile unsigned int BMXPUPBA __attribute__((section("sfrs")));
extern volatile unsigned int BMXPUPBACLR __attribute__((section("sfrs")));
extern volatile unsigned int BMXPUPBASET __attribute__((section("sfrs")));
extern volatile unsigned int BMXPUPBAINV __attribute__((section("sfrs")));
extern volatile unsigned int BMXPFMSZ __attribute__((section("sfrs")));
extern volatile unsigned int BMXBOOTSZ __attribute__((section("sfrs")));
extern volatile unsigned int DMACON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :12;
unsigned SUSPEND:1;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned w:32;
};
} __DMACONbits_t;
extern volatile __DMACONbits_t DMACONbits __asm__ ("DMACON") __attribute__((section("sfrs")));
extern volatile unsigned int DMACONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DMACONSET __attribute__((section("sfrs")));
extern volatile unsigned int DMACONINV __attribute__((section("sfrs")));
extern volatile unsigned int DMASTAT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned DMACH:2;
unsigned :1;
unsigned RDWR:1;
};
struct {
unsigned w:32;
};
} __DMASTATbits_t;
extern volatile __DMASTATbits_t DMASTATbits __asm__ ("DMASTAT") __attribute__((section("sfrs")));
extern volatile unsigned int DMASTATCLR __attribute__((section("sfrs")));
extern volatile unsigned int DMASTATSET __attribute__((section("sfrs")));
extern volatile unsigned int DMASTATINV __attribute__((section("sfrs")));
extern volatile unsigned int DMAADDR __attribute__((section("sfrs")));
extern volatile unsigned int DMAADDRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DMAADDRSET __attribute__((section("sfrs")));
extern volatile unsigned int DMAADDRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCRCCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CRCCH:2;
unsigned :3;
unsigned CRCTYP:1;
unsigned CRCAPP:1;
unsigned CRCEN:1;
unsigned PLEN:4;
unsigned :12;
unsigned BITO:1;
unsigned :2;
unsigned WBO:1;
unsigned BYTO:2;
};
struct {
unsigned w:32;
};
} __DCRCCONbits_t;
extern volatile __DCRCCONbits_t DCRCCONbits __asm__ ("DCRCCON") __attribute__((section("sfrs")));
extern volatile unsigned int DCRCCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCRCCONSET __attribute__((section("sfrs")));
extern volatile unsigned int DCRCCONINV __attribute__((section("sfrs")));
extern volatile unsigned int DCRCDATA __attribute__((section("sfrs")));
extern volatile unsigned int DCRCDATACLR __attribute__((section("sfrs")));
extern volatile unsigned int DCRCDATASET __attribute__((section("sfrs")));
extern volatile unsigned int DCRCDATAINV __attribute__((section("sfrs")));
extern volatile unsigned int DCRCXOR __attribute__((section("sfrs")));
extern volatile unsigned int DCRCXORCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCRCXORSET __attribute__((section("sfrs")));
extern volatile unsigned int DCRCXORINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CHPRI:2;
unsigned CHEDET:1;
unsigned :1;
unsigned CHAEN:1;
unsigned CHCHN:1;
unsigned CHAED:1;
unsigned CHEN:1;
unsigned CHCHNS:1;
};
struct {
unsigned w:32;
};
} __DCH0CONbits_t;
extern volatile __DCH0CONbits_t DCH0CONbits __asm__ ("DCH0CON") __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CONSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CONINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0ECON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :3;
unsigned AIRQEN:1;
unsigned SIRQEN:1;
unsigned PATEN:1;
unsigned CABORT:1;
unsigned CFORCE:1;
unsigned CHSIRQ:8;
unsigned CHAIRQ:8;
};
struct {
unsigned w:32;
};
} __DCH0ECONbits_t;
extern volatile __DCH0ECONbits_t DCH0ECONbits __asm__ ("DCH0ECON") __attribute__((section("sfrs")));
extern volatile unsigned int DCH0ECONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0ECONSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0ECONINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0INT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CHERIF:1;
unsigned CHTAIF:1;
unsigned CHCCIF:1;
unsigned CHBCIF:1;
unsigned CHDHIF:1;
unsigned CHDDIF:1;
unsigned CHSHIF:1;
unsigned CHSDIF:1;
unsigned :8;
unsigned CHERIE:1;
unsigned CHTAIE:1;
unsigned CHCCIE:1;
unsigned CHBCIE:1;
unsigned CHDHIE:1;
unsigned CHDDIE:1;
unsigned CHSHIE:1;
unsigned CHSDIE:1;
};
struct {
unsigned w:32;
};
} __DCH0INTbits_t;
extern volatile __DCH0INTbits_t DCH0INTbits __asm__ ("DCH0INT") __attribute__((section("sfrs")));
extern volatile unsigned int DCH0INTCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0INTSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0INTINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SSA __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SSACLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SSASET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SSAINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DSA __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DSACLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DSASET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DSAINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0SPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0CPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DAT __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DATCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DATSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH0DATINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CHPRI:2;
unsigned CHEDET:1;
unsigned :1;
unsigned CHAEN:1;
unsigned CHCHN:1;
unsigned CHAED:1;
unsigned CHEN:1;
unsigned CHCHNS:1;
};
struct {
unsigned w:32;
};
} __DCH1CONbits_t;
extern volatile __DCH1CONbits_t DCH1CONbits __asm__ ("DCH1CON") __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CONSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CONINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1ECON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :3;
unsigned AIRQEN:1;
unsigned SIRQEN:1;
unsigned PATEN:1;
unsigned CABORT:1;
unsigned CFORCE:1;
unsigned CHSIRQ:8;
unsigned CHAIRQ:8;
};
struct {
unsigned w:32;
};
} __DCH1ECONbits_t;
extern volatile __DCH1ECONbits_t DCH1ECONbits __asm__ ("DCH1ECON") __attribute__((section("sfrs")));
extern volatile unsigned int DCH1ECONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1ECONSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1ECONINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1INT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CHERIF:1;
unsigned CHTAIF:1;
unsigned CHCCIF:1;
unsigned CHBCIF:1;
unsigned CHDHIF:1;
unsigned CHDDIF:1;
unsigned CHSHIF:1;
unsigned CHSDIF:1;
unsigned :8;
unsigned CHERIE:1;
unsigned CHTAIE:1;
unsigned CHCCIE:1;
unsigned CHBCIE:1;
unsigned CHDHIE:1;
unsigned CHDDIE:1;
unsigned CHSHIE:1;
unsigned CHSDIE:1;
};
struct {
unsigned w:32;
};
} __DCH1INTbits_t;
extern volatile __DCH1INTbits_t DCH1INTbits __asm__ ("DCH1INT") __attribute__((section("sfrs")));
extern volatile unsigned int DCH1INTCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1INTSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1INTINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SSA __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SSACLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SSASET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SSAINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DSA __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DSACLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DSASET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DSAINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1SPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1CPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DAT __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DATCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DATSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH1DATINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CHPRI:2;
unsigned CHEDET:1;
unsigned :1;
unsigned CHAEN:1;
unsigned CHCHN:1;
unsigned CHAED:1;
unsigned CHEN:1;
unsigned CHCHNS:1;
};
struct {
unsigned w:32;
};
} __DCH2CONbits_t;
extern volatile __DCH2CONbits_t DCH2CONbits __asm__ ("DCH2CON") __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CONSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CONINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2ECON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :3;
unsigned AIRQEN:1;
unsigned SIRQEN:1;
unsigned PATEN:1;
unsigned CABORT:1;
unsigned CFORCE:1;
unsigned CHSIRQ:8;
unsigned CHAIRQ:8;
};
struct {
unsigned w:32;
};
} __DCH2ECONbits_t;
extern volatile __DCH2ECONbits_t DCH2ECONbits __asm__ ("DCH2ECON") __attribute__((section("sfrs")));
extern volatile unsigned int DCH2ECONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2ECONSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2ECONINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2INT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CHERIF:1;
unsigned CHTAIF:1;
unsigned CHCCIF:1;
unsigned CHBCIF:1;
unsigned CHDHIF:1;
unsigned CHDDIF:1;
unsigned CHSHIF:1;
unsigned CHSDIF:1;
unsigned :8;
unsigned CHERIE:1;
unsigned CHTAIE:1;
unsigned CHCCIE:1;
unsigned CHBCIE:1;
unsigned CHDHIE:1;
unsigned CHDDIE:1;
unsigned CHSHIE:1;
unsigned CHSDIE:1;
};
struct {
unsigned w:32;
};
} __DCH2INTbits_t;
extern volatile __DCH2INTbits_t DCH2INTbits __asm__ ("DCH2INT") __attribute__((section("sfrs")));
extern volatile unsigned int DCH2INTCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2INTSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2INTINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SSA __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SSACLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SSASET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SSAINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DSA __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DSACLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DSASET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DSAINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2SPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2CPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DAT __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DATCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DATSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH2DATINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CHPRI:2;
unsigned CHEDET:1;
unsigned :1;
unsigned CHAEN:1;
unsigned CHCHN:1;
unsigned CHAED:1;
unsigned CHEN:1;
unsigned CHCHNS:1;
};
struct {
unsigned w:32;
};
} __DCH3CONbits_t;
extern volatile __DCH3CONbits_t DCH3CONbits __asm__ ("DCH3CON") __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CONSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CONINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3ECON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :3;
unsigned AIRQEN:1;
unsigned SIRQEN:1;
unsigned PATEN:1;
unsigned CABORT:1;
unsigned CFORCE:1;
unsigned CHSIRQ:8;
unsigned CHAIRQ:8;
};
struct {
unsigned w:32;
};
} __DCH3ECONbits_t;
extern volatile __DCH3ECONbits_t DCH3ECONbits __asm__ ("DCH3ECON") __attribute__((section("sfrs")));
extern volatile unsigned int DCH3ECONCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3ECONSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3ECONINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3INT __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CHERIF:1;
unsigned CHTAIF:1;
unsigned CHCCIF:1;
unsigned CHBCIF:1;
unsigned CHDHIF:1;
unsigned CHDDIF:1;
unsigned CHSHIF:1;
unsigned CHSDIF:1;
unsigned :8;
unsigned CHERIE:1;
unsigned CHTAIE:1;
unsigned CHCCIE:1;
unsigned CHBCIE:1;
unsigned CHDHIE:1;
unsigned CHDDIE:1;
unsigned CHSHIE:1;
unsigned CHSDIE:1;
};
struct {
unsigned w:32;
};
} __DCH3INTbits_t;
extern volatile __DCH3INTbits_t DCH3INTbits __asm__ ("DCH3INT") __attribute__((section("sfrs")));
extern volatile unsigned int DCH3INTCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3INTSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3INTINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SSA __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SSACLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SSASET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SSAINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DSA __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DSACLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DSASET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DSAINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3SPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CSIZ __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CSIZCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CSIZSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CSIZINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CPTR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CPTRCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CPTRSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3CPTRINV __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DAT __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DATCLR __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DATSET __attribute__((section("sfrs")));
extern volatile unsigned int DCH3DATINV __attribute__((section("sfrs")));
extern volatile unsigned int CHECON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned PFMWS:3;
unsigned :1;
unsigned PREFEN:2;
unsigned :2;
unsigned DCSZ:2;
unsigned :6;
unsigned CHECOH:1;
};
struct {
unsigned w:32;
};
} __CHECONbits_t;
extern volatile __CHECONbits_t CHECONbits __asm__ ("CHECON") __attribute__((section("sfrs")));
extern volatile unsigned int CHECONCLR __attribute__((section("sfrs")));
extern volatile unsigned int CHECONSET __attribute__((section("sfrs")));
extern volatile unsigned int CHECONINV __attribute__((section("sfrs")));
extern volatile unsigned int CHEACC __attribute__((section("sfrs")));
typedef struct {
unsigned CHEIDX:4;
unsigned :27;
unsigned CHEWEN:1;
} __CHEACCbits_t;
extern volatile __CHEACCbits_t CHEACCbits __asm__ ("CHEACC") __attribute__((section("sfrs")));
extern volatile unsigned int CHEACCCLR __attribute__((section("sfrs")));
extern volatile unsigned int CHEACCSET __attribute__((section("sfrs")));
extern volatile unsigned int CHEACCINV __attribute__((section("sfrs")));
extern volatile unsigned int CHETAG __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned LTYPE:1;
unsigned LLOCK:1;
unsigned LVALID:1;
unsigned LTAG:20;
unsigned :7;
unsigned LTAGBOOT:1;
};
struct {
unsigned w:32;
};
} __CHETAGbits_t;
extern volatile __CHETAGbits_t CHETAGbits __asm__ ("CHETAG") __attribute__((section("sfrs")));
extern volatile unsigned int CHETAGCLR __attribute__((section("sfrs")));
extern volatile unsigned int CHETAGSET __attribute__((section("sfrs")));
extern volatile unsigned int CHETAGINV __attribute__((section("sfrs")));
extern volatile unsigned int CHEMSK __attribute__((section("sfrs")));
typedef struct {
unsigned :5;
unsigned LMASK:11;
} __CHEMSKbits_t;
extern volatile __CHEMSKbits_t CHEMSKbits __asm__ ("CHEMSK") __attribute__((section("sfrs")));
extern volatile unsigned int CHEMSKCLR __attribute__((section("sfrs")));
extern volatile unsigned int CHEMSKSET __attribute__((section("sfrs")));
extern volatile unsigned int CHEMSKINV __attribute__((section("sfrs")));
extern volatile unsigned int CHEW0 __attribute__((section("sfrs")));
typedef struct {
unsigned CHEW0:32;
} __CHEW0bits_t;
extern volatile __CHEW0bits_t CHEW0bits __asm__ ("CHEW0") __attribute__((section("sfrs")));
extern volatile unsigned int CHEW1 __attribute__((section("sfrs")));
typedef struct {
unsigned CHEW1:32;
} __CHEW1bits_t;
extern volatile __CHEW1bits_t CHEW1bits __asm__ ("CHEW1") __attribute__((section("sfrs")));
extern volatile unsigned int CHEW2 __attribute__((section("sfrs")));
typedef struct {
unsigned CHEW2:32;
} __CHEW2bits_t;
extern volatile __CHEW2bits_t CHEW2bits __asm__ ("CHEW2") __attribute__((section("sfrs")));
extern volatile unsigned int CHEW3 __attribute__((section("sfrs")));
typedef struct {
unsigned CHEW3:32;
} __CHEW3bits_t;
extern volatile __CHEW3bits_t CHEW3bits __asm__ ("CHEW3") __attribute__((section("sfrs")));
extern volatile unsigned int CHELRU __attribute__((section("sfrs")));
typedef struct {
unsigned CHELRU:25;
} __CHELRUbits_t;
extern volatile __CHELRUbits_t CHELRUbits __asm__ ("CHELRU") __attribute__((section("sfrs")));
extern volatile unsigned int CHEHIT __attribute__((section("sfrs")));
typedef struct {
unsigned CHEHIT:32;
} __CHEHITbits_t;
extern volatile __CHEHITbits_t CHEHITbits __asm__ ("CHEHIT") __attribute__((section("sfrs")));
extern volatile unsigned int CHEMIS __attribute__((section("sfrs")));
typedef struct {
unsigned CHEMIS:32;
} __CHEMISbits_t;
extern volatile __CHEMISbits_t CHEMISbits __asm__ ("CHEMIS") __attribute__((section("sfrs")));
extern volatile unsigned int CHEPFABT __attribute__((section("sfrs")));
typedef struct {
unsigned CHEPFABT:32;
} __CHEPFABTbits_t;
extern volatile __CHEPFABTbits_t CHEPFABTbits __asm__ ("CHEPFABT") __attribute__((section("sfrs")));
extern volatile unsigned int TRISA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TRISA0:1;
unsigned TRISA1:1;
unsigned TRISA2:1;
unsigned TRISA3:1;
unsigned TRISA4:1;
unsigned TRISA5:1;
unsigned TRISA6:1;
unsigned TRISA7:1;
unsigned :1;
unsigned TRISA9:1;
unsigned TRISA10:1;
unsigned :3;
unsigned TRISA14:1;
unsigned TRISA15:1;
};
struct {
unsigned w:32;
};
} __TRISAbits_t;
extern volatile __TRISAbits_t TRISAbits __asm__ ("TRISA") __attribute__((section("sfrs")));
extern volatile unsigned int TRISACLR __attribute__((section("sfrs")));
extern volatile unsigned int TRISASET __attribute__((section("sfrs")));
extern volatile unsigned int TRISAINV __attribute__((section("sfrs")));
extern volatile unsigned int PORTA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned RA0:1;
unsigned RA1:1;
unsigned RA2:1;
unsigned RA3:1;
unsigned RA4:1;
unsigned RA5:1;
unsigned RA6:1;
unsigned RA7:1;
unsigned :1;
unsigned RA9:1;
unsigned RA10:1;
unsigned :3;
unsigned RA14:1;
unsigned RA15:1;
};
struct {
unsigned w:32;
};
} __PORTAbits_t;
extern volatile __PORTAbits_t PORTAbits __asm__ ("PORTA") __attribute__((section("sfrs")));
extern volatile unsigned int PORTACLR __attribute__((section("sfrs")));
extern volatile unsigned int PORTASET __attribute__((section("sfrs")));
extern volatile unsigned int PORTAINV __attribute__((section("sfrs")));
extern volatile unsigned int LATA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned LATA0:1;
unsigned LATA1:1;
unsigned LATA2:1;
unsigned LATA3:1;
unsigned LATA4:1;
unsigned LATA5:1;
unsigned LATA6:1;
unsigned LATA7:1;
unsigned :1;
unsigned LATA9:1;
unsigned LATA10:1;
unsigned :3;
unsigned LATA14:1;
unsigned LATA15:1;
};
struct {
unsigned w:32;
};
} __LATAbits_t;
extern volatile __LATAbits_t LATAbits __asm__ ("LATA") __attribute__((section("sfrs")));
extern volatile unsigned int LATACLR __attribute__((section("sfrs")));
extern volatile unsigned int LATASET __attribute__((section("sfrs")));
extern volatile unsigned int LATAINV __attribute__((section("sfrs")));
extern volatile unsigned int ODCA __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ODCA0:1;
unsigned ODCA1:1;
unsigned ODCA2:1;
unsigned ODCA3:1;
unsigned ODCA4:1;
unsigned ODCA5:1;
unsigned ODCA6:1;
unsigned ODCA7:1;
unsigned :1;
unsigned ODCA9:1;
unsigned ODCA10:1;
unsigned :3;
unsigned ODCA14:1;
unsigned ODCA15:1;
};
struct {
unsigned w:32;
};
} __ODCAbits_t;
extern volatile __ODCAbits_t ODCAbits __asm__ ("ODCA") __attribute__((section("sfrs")));
extern volatile unsigned int ODCACLR __attribute__((section("sfrs")));
extern volatile unsigned int ODCASET __attribute__((section("sfrs")));
extern volatile unsigned int ODCAINV __attribute__((section("sfrs")));
extern volatile unsigned int TRISB __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TRISB0:1;
unsigned TRISB1:1;
unsigned TRISB2:1;
unsigned TRISB3:1;
unsigned TRISB4:1;
unsigned TRISB5:1;
unsigned TRISB6:1;
unsigned TRISB7:1;
unsigned TRISB8:1;
unsigned TRISB9:1;
unsigned TRISB10:1;
unsigned TRISB11:1;
unsigned TRISB12:1;
unsigned TRISB13:1;
unsigned TRISB14:1;
unsigned TRISB15:1;
};
struct {
unsigned w:32;
};
} __TRISBbits_t;
extern volatile __TRISBbits_t TRISBbits __asm__ ("TRISB") __attribute__((section("sfrs")));
extern volatile unsigned int TRISBCLR __attribute__((section("sfrs")));
extern volatile unsigned int TRISBSET __attribute__((section("sfrs")));
extern volatile unsigned int TRISBINV __attribute__((section("sfrs")));
extern volatile unsigned int PORTB __attribute__((section("sfrs")));
typedef union {
struct {
unsigned RB0:1;
unsigned RB1:1;
unsigned RB2:1;
unsigned RB3:1;
unsigned RB4:1;
unsigned RB5:1;
unsigned RB6:1;
unsigned RB7:1;
unsigned RB8:1;
unsigned RB9:1;
unsigned RB10:1;
unsigned RB11:1;
unsigned RB12:1;
unsigned RB13:1;
unsigned RB14:1;
unsigned RB15:1;
};
struct {
unsigned w:32;
};
} __PORTBbits_t;
extern volatile __PORTBbits_t PORTBbits __asm__ ("PORTB") __attribute__((section("sfrs")));
extern volatile unsigned int PORTBCLR __attribute__((section("sfrs")));
extern volatile unsigned int PORTBSET __attribute__((section("sfrs")));
extern volatile unsigned int PORTBINV __attribute__((section("sfrs")));
extern volatile unsigned int LATB __attribute__((section("sfrs")));
typedef union {
struct {
unsigned LATB0:1;
unsigned LATB1:1;
unsigned LATB2:1;
unsigned LATB3:1;
unsigned LATB4:1;
unsigned LATB5:1;
unsigned LATB6:1;
unsigned LATB7:1;
unsigned LATB8:1;
unsigned LATB9:1;
unsigned LATB10:1;
unsigned LATB11:1;
unsigned LATB12:1;
unsigned LATB13:1;
unsigned LATB14:1;
unsigned LATB15:1;
};
struct {
unsigned w:32;
};
} __LATBbits_t;
extern volatile __LATBbits_t LATBbits __asm__ ("LATB") __attribute__((section("sfrs")));
extern volatile unsigned int LATBCLR __attribute__((section("sfrs")));
extern volatile unsigned int LATBSET __attribute__((section("sfrs")));
extern volatile unsigned int LATBINV __attribute__((section("sfrs")));
extern volatile unsigned int ODCB __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ODCB0:1;
unsigned ODCB1:1;
unsigned ODCB2:1;
unsigned ODCB3:1;
unsigned ODCB4:1;
unsigned ODCB5:1;
unsigned ODCB6:1;
unsigned ODCB7:1;
unsigned ODCB8:1;
unsigned ODCB9:1;
unsigned ODCB10:1;
unsigned ODCB11:1;
unsigned ODCB12:1;
unsigned ODCB13:1;
unsigned ODCB14:1;
unsigned ODCB15:1;
};
struct {
unsigned w:32;
};
} __ODCBbits_t;
extern volatile __ODCBbits_t ODCBbits __asm__ ("ODCB") __attribute__((section("sfrs")));
extern volatile unsigned int ODCBCLR __attribute__((section("sfrs")));
extern volatile unsigned int ODCBSET __attribute__((section("sfrs")));
extern volatile unsigned int ODCBINV __attribute__((section("sfrs")));
extern volatile unsigned int TRISC __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned TRISC1:1;
unsigned TRISC2:1;
unsigned TRISC3:1;
unsigned TRISC4:1;
unsigned :7;
unsigned TRISC12:1;
unsigned TRISC13:1;
unsigned TRISC14:1;
unsigned TRISC15:1;
};
struct {
unsigned w:32;
};
} __TRISCbits_t;
extern volatile __TRISCbits_t TRISCbits __asm__ ("TRISC") __attribute__((section("sfrs")));
extern volatile unsigned int TRISCCLR __attribute__((section("sfrs")));
extern volatile unsigned int TRISCSET __attribute__((section("sfrs")));
extern volatile unsigned int TRISCINV __attribute__((section("sfrs")));
extern volatile unsigned int PORTC __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned RC1:1;
unsigned RC2:1;
unsigned RC3:1;
unsigned RC4:1;
unsigned :7;
unsigned RC12:1;
unsigned RC13:1;
unsigned RC14:1;
unsigned RC15:1;
};
struct {
unsigned w:32;
};
} __PORTCbits_t;
extern volatile __PORTCbits_t PORTCbits __asm__ ("PORTC") __attribute__((section("sfrs")));
extern volatile unsigned int PORTCCLR __attribute__((section("sfrs")));
extern volatile unsigned int PORTCSET __attribute__((section("sfrs")));
extern volatile unsigned int PORTCINV __attribute__((section("sfrs")));
extern volatile unsigned int LATC __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned LATC1:1;
unsigned LATC2:1;
unsigned LATC3:1;
unsigned LATC4:1;
unsigned :7;
unsigned LATC12:1;
unsigned LATC13:1;
unsigned LATC14:1;
unsigned LATC15:1;
};
struct {
unsigned w:32;
};
} __LATCbits_t;
extern volatile __LATCbits_t LATCbits __asm__ ("LATC") __attribute__((section("sfrs")));
extern volatile unsigned int LATCCLR __attribute__((section("sfrs")));
extern volatile unsigned int LATCSET __attribute__((section("sfrs")));
extern volatile unsigned int LATCINV __attribute__((section("sfrs")));
extern volatile unsigned int ODCC __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :1;
unsigned ODCC1:1;
unsigned ODCC2:1;
unsigned ODCC3:1;
unsigned ODCC4:1;
unsigned :7;
unsigned ODCC12:1;
unsigned ODCC13:1;
unsigned ODCC14:1;
unsigned ODCC15:1;
};
struct {
unsigned w:32;
};
} __ODCCbits_t;
extern volatile __ODCCbits_t ODCCbits __asm__ ("ODCC") __attribute__((section("sfrs")));
extern volatile unsigned int ODCCCLR __attribute__((section("sfrs")));
extern volatile unsigned int ODCCSET __attribute__((section("sfrs")));
extern volatile unsigned int ODCCINV __attribute__((section("sfrs")));
extern volatile unsigned int TRISD __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TRISD0:1;
unsigned TRISD1:1;
unsigned TRISD2:1;
unsigned TRISD3:1;
unsigned TRISD4:1;
unsigned TRISD5:1;
unsigned TRISD6:1;
unsigned TRISD7:1;
unsigned TRISD8:1;
unsigned TRISD9:1;
unsigned TRISD10:1;
unsigned TRISD11:1;
unsigned TRISD12:1;
unsigned TRISD13:1;
unsigned TRISD14:1;
unsigned TRISD15:1;
};
struct {
unsigned w:32;
};
} __TRISDbits_t;
extern volatile __TRISDbits_t TRISDbits __asm__ ("TRISD") __attribute__((section("sfrs")));
extern volatile unsigned int TRISDCLR __attribute__((section("sfrs")));
extern volatile unsigned int TRISDSET __attribute__((section("sfrs")));
extern volatile unsigned int TRISDINV __attribute__((section("sfrs")));
extern volatile unsigned int PORTD __attribute__((section("sfrs")));
typedef union {
struct {
unsigned RD0:1;
unsigned RD1:1;
unsigned RD2:1;
unsigned RD3:1;
unsigned RD4:1;
unsigned RD5:1;
unsigned RD6:1;
unsigned RD7:1;
unsigned RD8:1;
unsigned RD9:1;
unsigned RD10:1;
unsigned RD11:1;
unsigned RD12:1;
unsigned RD13:1;
unsigned RD14:1;
unsigned RD15:1;
};
struct {
unsigned w:32;
};
} __PORTDbits_t;
extern volatile __PORTDbits_t PORTDbits __asm__ ("PORTD") __attribute__((section("sfrs")));
extern volatile unsigned int PORTDCLR __attribute__((section("sfrs")));
extern volatile unsigned int PORTDSET __attribute__((section("sfrs")));
extern volatile unsigned int PORTDINV __attribute__((section("sfrs")));
extern volatile unsigned int LATD __attribute__((section("sfrs")));
typedef union {
struct {
unsigned LATD0:1;
unsigned LATD1:1;
unsigned LATD2:1;
unsigned LATD3:1;
unsigned LATD4:1;
unsigned LATD5:1;
unsigned LATD6:1;
unsigned LATD7:1;
unsigned LATD8:1;
unsigned LATD9:1;
unsigned LATD10:1;
unsigned LATD11:1;
unsigned LATD12:1;
unsigned LATD13:1;
unsigned LATD14:1;
unsigned LATD15:1;
};
struct {
unsigned w:32;
};
} __LATDbits_t;
extern volatile __LATDbits_t LATDbits __asm__ ("LATD") __attribute__((section("sfrs")));
extern volatile unsigned int LATDCLR __attribute__((section("sfrs")));
extern volatile unsigned int LATDSET __attribute__((section("sfrs")));
extern volatile unsigned int LATDINV __attribute__((section("sfrs")));
extern volatile unsigned int ODCD __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ODCD0:1;
unsigned ODCD1:1;
unsigned ODCD2:1;
unsigned ODCD3:1;
unsigned ODCD4:1;
unsigned ODCD5:1;
unsigned ODCD6:1;
unsigned ODCD7:1;
unsigned ODCD8:1;
unsigned ODCD9:1;
unsigned ODCD10:1;
unsigned ODCD11:1;
unsigned ODCD12:1;
unsigned ODCD13:1;
unsigned ODCD14:1;
unsigned ODCD15:1;
};
struct {
unsigned w:32;
};
} __ODCDbits_t;
extern volatile __ODCDbits_t ODCDbits __asm__ ("ODCD") __attribute__((section("sfrs")));
extern volatile unsigned int ODCDCLR __attribute__((section("sfrs")));
extern volatile unsigned int ODCDSET __attribute__((section("sfrs")));
extern volatile unsigned int ODCDINV __attribute__((section("sfrs")));
extern volatile unsigned int TRISE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TRISE0:1;
unsigned TRISE1:1;
unsigned TRISE2:1;
unsigned TRISE3:1;
unsigned TRISE4:1;
unsigned TRISE5:1;
unsigned TRISE6:1;
unsigned TRISE7:1;
unsigned TRISE8:1;
unsigned TRISE9:1;
};
struct {
unsigned w:32;
};
} __TRISEbits_t;
extern volatile __TRISEbits_t TRISEbits __asm__ ("TRISE") __attribute__((section("sfrs")));
extern volatile unsigned int TRISECLR __attribute__((section("sfrs")));
extern volatile unsigned int TRISESET __attribute__((section("sfrs")));
extern volatile unsigned int TRISEINV __attribute__((section("sfrs")));
extern volatile unsigned int PORTE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned RE0:1;
unsigned RE1:1;
unsigned RE2:1;
unsigned RE3:1;
unsigned RE4:1;
unsigned RE5:1;
unsigned RE6:1;
unsigned RE7:1;
unsigned RE8:1;
unsigned RE9:1;
};
struct {
unsigned w:32;
};
} __PORTEbits_t;
extern volatile __PORTEbits_t PORTEbits __asm__ ("PORTE") __attribute__((section("sfrs")));
extern volatile unsigned int PORTECLR __attribute__((section("sfrs")));
extern volatile unsigned int PORTESET __attribute__((section("sfrs")));
extern volatile unsigned int PORTEINV __attribute__((section("sfrs")));
extern volatile unsigned int LATE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned LATE0:1;
unsigned LATE1:1;
unsigned LATE2:1;
unsigned LATE3:1;
unsigned LATE4:1;
unsigned LATE5:1;
unsigned LATE6:1;
unsigned LATE7:1;
unsigned LATE8:1;
unsigned LATE9:1;
};
struct {
unsigned w:32;
};
} __LATEbits_t;
extern volatile __LATEbits_t LATEbits __asm__ ("LATE") __attribute__((section("sfrs")));
extern volatile unsigned int LATECLR __attribute__((section("sfrs")));
extern volatile unsigned int LATESET __attribute__((section("sfrs")));
extern volatile unsigned int LATEINV __attribute__((section("sfrs")));
extern volatile unsigned int ODCE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ODCE0:1;
unsigned ODCE1:1;
unsigned ODCE2:1;
unsigned ODCE3:1;
unsigned ODCE4:1;
unsigned ODCE5:1;
unsigned ODCE6:1;
unsigned ODCE7:1;
unsigned ODCE8:1;
unsigned ODCE9:1;
};
struct {
unsigned w:32;
};
} __ODCEbits_t;
extern volatile __ODCEbits_t ODCEbits __asm__ ("ODCE") __attribute__((section("sfrs")));
extern volatile unsigned int ODCECLR __attribute__((section("sfrs")));
extern volatile unsigned int ODCESET __attribute__((section("sfrs")));
extern volatile unsigned int ODCEINV __attribute__((section("sfrs")));
extern volatile unsigned int TRISF __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TRISF0:1;
unsigned TRISF1:1;
unsigned TRISF2:1;
unsigned TRISF3:1;
unsigned TRISF4:1;
unsigned TRISF5:1;
unsigned TRISF6:1;
unsigned TRISF7:1;
unsigned TRISF8:1;
unsigned :3;
unsigned TRISF12:1;
unsigned TRISF13:1;
};
struct {
unsigned w:32;
};
} __TRISFbits_t;
extern volatile __TRISFbits_t TRISFbits __asm__ ("TRISF") __attribute__((section("sfrs")));
extern volatile unsigned int TRISFCLR __attribute__((section("sfrs")));
extern volatile unsigned int TRISFSET __attribute__((section("sfrs")));
extern volatile unsigned int TRISFINV __attribute__((section("sfrs")));
extern volatile unsigned int PORTF __attribute__((section("sfrs")));
typedef union {
struct {
unsigned RF0:1;
unsigned RF1:1;
unsigned RF2:1;
unsigned RF3:1;
unsigned RF4:1;
unsigned RF5:1;
unsigned RF6:1;
unsigned RF7:1;
unsigned RF8:1;
unsigned :3;
unsigned RF12:1;
unsigned RF13:1;
};
struct {
unsigned w:32;
};
} __PORTFbits_t;
extern volatile __PORTFbits_t PORTFbits __asm__ ("PORTF") __attribute__((section("sfrs")));
extern volatile unsigned int PORTFCLR __attribute__((section("sfrs")));
extern volatile unsigned int PORTFSET __attribute__((section("sfrs")));
extern volatile unsigned int PORTFINV __attribute__((section("sfrs")));
extern volatile unsigned int LATF __attribute__((section("sfrs")));
typedef union {
struct {
unsigned LATF0:1;
unsigned LATF1:1;
unsigned LATF2:1;
unsigned LATF3:1;
unsigned LATF4:1;
unsigned LATF5:1;
unsigned LATF6:1;
unsigned LATF7:1;
unsigned LATF8:1;
unsigned :3;
unsigned LATF12:1;
unsigned LATF13:1;
};
struct {
unsigned w:32;
};
} __LATFbits_t;
extern volatile __LATFbits_t LATFbits __asm__ ("LATF") __attribute__((section("sfrs")));
extern volatile unsigned int LATFCLR __attribute__((section("sfrs")));
extern volatile unsigned int LATFSET __attribute__((section("sfrs")));
extern volatile unsigned int LATFINV __attribute__((section("sfrs")));
extern volatile unsigned int ODCF __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ODCF0:1;
unsigned ODCF1:1;
unsigned ODCF2:1;
unsigned ODCF3:1;
unsigned ODCF4:1;
unsigned ODCF5:1;
unsigned ODCF6:1;
unsigned ODCF7:1;
unsigned ODCF8:1;
unsigned :3;
unsigned ODCF12:1;
unsigned ODCF13:1;
};
struct {
unsigned w:32;
};
} __ODCFbits_t;
extern volatile __ODCFbits_t ODCFbits __asm__ ("ODCF") __attribute__((section("sfrs")));
extern volatile unsigned int ODCFCLR __attribute__((section("sfrs")));
extern volatile unsigned int ODCFSET __attribute__((section("sfrs")));
extern volatile unsigned int ODCFINV __attribute__((section("sfrs")));
extern volatile unsigned int TRISG __attribute__((section("sfrs")));
typedef union {
struct {
unsigned TRISG0:1;
unsigned TRISG1:1;
unsigned TRISG2:1;
unsigned TRISG3:1;
unsigned :2;
unsigned TRISG6:1;
unsigned TRISG7:1;
unsigned TRISG8:1;
unsigned TRISG9:1;
unsigned :2;
unsigned TRISG12:1;
unsigned TRISG13:1;
unsigned TRISG14:1;
unsigned TRISG15:1;
};
struct {
unsigned w:32;
};
} __TRISGbits_t;
extern volatile __TRISGbits_t TRISGbits __asm__ ("TRISG") __attribute__((section("sfrs")));
extern volatile unsigned int TRISGCLR __attribute__((section("sfrs")));
extern volatile unsigned int TRISGSET __attribute__((section("sfrs")));
extern volatile unsigned int TRISGINV __attribute__((section("sfrs")));
extern volatile unsigned int PORTG __attribute__((section("sfrs")));
typedef union {
struct {
unsigned RG0:1;
unsigned RG1:1;
unsigned RG2:1;
unsigned RG3:1;
unsigned :2;
unsigned RG6:1;
unsigned RG7:1;
unsigned RG8:1;
unsigned RG9:1;
unsigned :2;
unsigned RG12:1;
unsigned RG13:1;
unsigned RG14:1;
unsigned RG15:1;
};
struct {
unsigned w:32;
};
} __PORTGbits_t;
extern volatile __PORTGbits_t PORTGbits __asm__ ("PORTG") __attribute__((section("sfrs")));
extern volatile unsigned int PORTGCLR __attribute__((section("sfrs")));
extern volatile unsigned int PORTGSET __attribute__((section("sfrs")));
extern volatile unsigned int PORTGINV __attribute__((section("sfrs")));
extern volatile unsigned int LATG __attribute__((section("sfrs")));
typedef union {
struct {
unsigned LATG0:1;
unsigned LATG1:1;
unsigned LATG2:1;
unsigned LATG3:1;
unsigned :2;
unsigned LATG6:1;
unsigned LATG7:1;
unsigned LATG8:1;
unsigned LATG9:1;
unsigned :2;
unsigned LATG12:1;
unsigned LATG13:1;
unsigned LATG14:1;
unsigned LATG15:1;
};
struct {
unsigned w:32;
};
} __LATGbits_t;
extern volatile __LATGbits_t LATGbits __asm__ ("LATG") __attribute__((section("sfrs")));
extern volatile unsigned int LATGCLR __attribute__((section("sfrs")));
extern volatile unsigned int LATGSET __attribute__((section("sfrs")));
extern volatile unsigned int LATGINV __attribute__((section("sfrs")));
extern volatile unsigned int ODCG __attribute__((section("sfrs")));
typedef union {
struct {
unsigned ODCG0:1;
unsigned ODCG1:1;
unsigned ODCG2:1;
unsigned ODCG3:1;
unsigned :2;
unsigned ODCG6:1;
unsigned ODCG7:1;
unsigned ODCG8:1;
unsigned ODCG9:1;
unsigned :2;
unsigned ODCG12:1;
unsigned ODCG13:1;
unsigned ODCG14:1;
unsigned ODCG15:1;
};
struct {
unsigned w:32;
};
} __ODCGbits_t;
extern volatile __ODCGbits_t ODCGbits __asm__ ("ODCG") __attribute__((section("sfrs")));
extern volatile unsigned int ODCGCLR __attribute__((section("sfrs")));
extern volatile unsigned int ODCGSET __attribute__((section("sfrs")));
extern volatile unsigned int ODCGINV __attribute__((section("sfrs")));
extern volatile unsigned int CNCON __attribute__((section("sfrs")));
typedef union {
struct {
unsigned :13;
unsigned SIDL:1;
unsigned :1;
unsigned ON:1;
};
struct {
unsigned w:32;
};
} __CNCONbits_t;
extern volatile __CNCONbits_t CNCONbits __asm__ ("CNCON") __attribute__((section("sfrs")));
extern volatile unsigned int CNCONCLR __attribute__((section("sfrs")));
extern volatile unsigned int CNCONSET __attribute__((section("sfrs")));
extern volatile unsigned int CNCONINV __attribute__((section("sfrs")));
extern volatile unsigned int CNEN __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CNEN0:1;
unsigned CNEN1:1;
unsigned CNEN2:1;
unsigned CNEN3:1;
unsigned CNEN4:1;
unsigned CNEN5:1;
unsigned CNEN6:1;
unsigned CNEN7:1;
unsigned CNEN8:1;
unsigned CNEN9:1;
unsigned CNEN10:1;
unsigned CNEN11:1;
unsigned CNEN12:1;
unsigned CNEN13:1;
unsigned CNEN14:1;
unsigned CNEN15:1;
unsigned CNEN16:1;
unsigned CNEN17:1;
unsigned CNEN18:1;
unsigned CNEN19:1;
unsigned CNEN20:1;
unsigned CNEN21:1;
};
struct {
unsigned w:32;
};
} __CNENbits_t;
extern volatile __CNENbits_t CNENbits __asm__ ("CNEN") __attribute__((section("sfrs")));
extern volatile unsigned int CNENCLR __attribute__((section("sfrs")));
extern volatile unsigned int CNENSET __attribute__((section("sfrs")));
extern volatile unsigned int CNENINV __attribute__((section("sfrs")));
extern volatile unsigned int CNPUE __attribute__((section("sfrs")));
typedef union {
struct {
unsigned CNPUE0:1;
unsigned CNPUE1:1;
unsigned CNPUE2:1;
unsigned CNPUE3:1;
unsigned CNPUE4:1;
unsigned CNPUE5:1;
unsigned CNPUE6:1;
unsigned CNPUE7:1;
unsigned CNPUE8:1;
unsigned CNPUE9:1;
unsigned CNPUE10:1;
unsigned CNPUE11:1;
unsigned CNPUE12:1;
unsigned CNPUE13:1;
unsigned CNPUE14:1;
unsigned CNPUE15:1;
unsigned CNPUE16:1;
unsigned CNPUE17:1;
unsigned CNPUE18:1;
unsigned CNPUE19:1;
unsigned CNPUE20:1;
unsigned CNPUE21:1;
};
struct {
unsigned w:32;
};
} __CNPUEbits_t;
extern volatile __CNPUEbits_t CNPUEbits __asm__ ("CNPUE") __attribute__((section("sfrs")));
extern volatile unsigned int CNPUECLR __attribute__((section("sfrs")));
extern volatile unsigned int CNPUESET __attribute__((section("sfrs")));
extern volatile unsigned int CNPUEINV __attribute__((section("sfrs")));
extern volatile unsigned int DEVCFG3 __attribute__((section("sfrs")));
typedef union {
struct {
unsigned USERID:16;
};
struct {
unsigned w:32;
};
} __DEVCFG3bits_t;
extern volatile __DEVCFG3bits_t DEVCFG3bits __asm__ ("DEVCFG3") __attribute__((section("sfrs")));
extern volatile unsigned int DEVCFG2 __attribute__((section("sfrs")));
typedef union {
struct {
unsigned FPLLIDIV:3;
unsigned :1;
unsigned FPLLMUL:3;
unsigned :9;
unsigned FPLLODIV:3;
};
struct {
unsigned w:32;
};
} __DEVCFG2bits_t;
extern volatile __DEVCFG2bits_t DEVCFG2bits __asm__ ("DEVCFG2") __attribute__((section("sfrs")));
extern volatile unsigned int DEVCFG1 __attribute__((section("sfrs")));
typedef union {
struct {
unsigned FNOSC:3;
unsigned :2;
unsigned FSOSCEN:1;
unsigned :1;
unsigned IESO:1;
unsigned POSCMOD:2;
unsigned OSCIOFNC:1;
unsigned :1;
unsigned FPBDIV:2;
unsigned FCKSM:2;
unsigned WDTPS:5;
unsigned :2;
unsigned FWDTEN:1;
};
struct {
unsigned w:32;
};
} __DEVCFG1bits_t;
extern volatile __DEVCFG1bits_t DEVCFG1bits __asm__ ("DEVCFG1") __attribute__((section("sfrs")));
extern volatile unsigned int DEVCFG0 __attribute__((section("sfrs")));
typedef union {
struct {
unsigned DEBUG:2;
unsigned :1;
unsigned ICESEL:1;
unsigned :8;
unsigned PWP:8;
unsigned :4;
unsigned BWP:1;
unsigned :3;
unsigned CP:1;
};
struct {
unsigned FDEBUG:2;
};
struct {
unsigned w:32;
};
} __DEVCFG0bits_t;
extern volatile __DEVCFG0bits_t DEVCFG0bits __asm__ ("DEVCFG0") __attribute__((section("sfrs")));
#ifdef __cplusplus
}
#endif
#elif defined (__LANGUAGE_ASSEMBLY__)
.extern WDTCON /* 0xBF800000 */
.extern WDTCONCLR /* 0xBF800004 */
.extern WDTCONSET /* 0xBF800008 */
.extern WDTCONINV /* 0xBF80000C */
.extern RTCCON /* 0xBF800200 */
.extern RTCCONCLR /* 0xBF800204 */
.extern RTCCONSET /* 0xBF800208 */
.extern RTCCONINV /* 0xBF80020C */
.extern RTCALRM /* 0xBF800210 */
.extern RTCALRMCLR /* 0xBF800214 */
.extern RTCALRMSET /* 0xBF800218 */
.extern RTCALRMINV /* 0xBF80021C */
.extern RTCTIME /* 0xBF800220 */
.extern RTCTIMECLR /* 0xBF800224 */
.extern RTCTIMESET /* 0xBF800228 */
.extern RTCTIMEINV /* 0xBF80022C */
.extern RTCDATE /* 0xBF800230 */
.extern RTCDATECLR /* 0xBF800234 */
.extern RTCDATESET /* 0xBF800238 */
.extern RTCDATEINV /* 0xBF80023C */
.extern ALRMTIME /* 0xBF800240 */
.extern ALRMTIMECLR /* 0xBF800244 */
.extern ALRMTIMESET /* 0xBF800248 */
.extern ALRMTIMEINV /* 0xBF80024C */
.extern ALRMDATE /* 0xBF800250 */
.extern ALRMDATECLR /* 0xBF800254 */
.extern ALRMDATESET /* 0xBF800258 */
.extern ALRMDATEINV /* 0xBF80025C */
.extern T1CON /* 0xBF800600 */
.extern T1CONCLR /* 0xBF800604 */
.extern T1CONSET /* 0xBF800608 */
.extern T1CONINV /* 0xBF80060C */
.extern TMR1 /* 0xBF800610 */
.extern TMR1CLR /* 0xBF800614 */
.extern TMR1SET /* 0xBF800618 */
.extern TMR1INV /* 0xBF80061C */
.extern PR1 /* 0xBF800620 */
.extern PR1CLR /* 0xBF800624 */
.extern PR1SET /* 0xBF800628 */
.extern PR1INV /* 0xBF80062C */
.extern T2CON /* 0xBF800800 */
.extern T2CONCLR /* 0xBF800804 */
.extern T2CONSET /* 0xBF800808 */
.extern T2CONINV /* 0xBF80080C */
.extern TMR2 /* 0xBF800810 */
.extern TMR2CLR /* 0xBF800814 */
.extern TMR2SET /* 0xBF800818 */
.extern TMR2INV /* 0xBF80081C */
.extern PR2 /* 0xBF800820 */
.extern PR2CLR /* 0xBF800824 */
.extern PR2SET /* 0xBF800828 */
.extern PR2INV /* 0xBF80082C */
.extern T3CON /* 0xBF800A00 */
.extern T3CONCLR /* 0xBF800A04 */
.extern T3CONSET /* 0xBF800A08 */
.extern T3CONINV /* 0xBF800A0C */
.extern TMR3 /* 0xBF800A10 */
.extern TMR3CLR /* 0xBF800A14 */
.extern TMR3SET /* 0xBF800A18 */
.extern TMR3INV /* 0xBF800A1C */
.extern PR3 /* 0xBF800A20 */
.extern PR3CLR /* 0xBF800A24 */
.extern PR3SET /* 0xBF800A28 */
.extern PR3INV /* 0xBF800A2C */
.extern T4CON /* 0xBF800C00 */
.extern T4CONCLR /* 0xBF800C04 */
.extern T4CONSET /* 0xBF800C08 */
.extern T4CONINV /* 0xBF800C0C */
.extern TMR4 /* 0xBF800C10 */
.extern TMR4CLR /* 0xBF800C14 */
.extern TMR4SET /* 0xBF800C18 */
.extern TMR4INV /* 0xBF800C1C */
.extern PR4 /* 0xBF800C20 */
.extern PR4CLR /* 0xBF800C24 */
.extern PR4SET /* 0xBF800C28 */
.extern PR4INV /* 0xBF800C2C */
.extern T5CON /* 0xBF800E00 */
.extern T5CONCLR /* 0xBF800E04 */
.extern T5CONSET /* 0xBF800E08 */
.extern T5CONINV /* 0xBF800E0C */
.extern TMR5 /* 0xBF800E10 */
.extern TMR5CLR /* 0xBF800E14 */
.extern TMR5SET /* 0xBF800E18 */
.extern TMR5INV /* 0xBF800E1C */
.extern PR5 /* 0xBF800E20 */
.extern PR5CLR /* 0xBF800E24 */
.extern PR5SET /* 0xBF800E28 */
.extern PR5INV /* 0xBF800E2C */
.extern IC1CON /* 0xBF802000 */
.extern IC1CONCLR /* 0xBF802004 */
.extern IC1CONSET /* 0xBF802008 */
.extern IC1CONINV /* 0xBF80200C */
.extern IC1BUF /* 0xBF802010 */
.extern IC2CON /* 0xBF802200 */
.extern IC2CONCLR /* 0xBF802204 */
.extern IC2CONSET /* 0xBF802208 */
.extern IC2CONINV /* 0xBF80220C */
.extern IC2BUF /* 0xBF802210 */
.extern IC3CON /* 0xBF802400 */
.extern IC3CONCLR /* 0xBF802404 */
.extern IC3CONSET /* 0xBF802408 */
.extern IC3CONINV /* 0xBF80240C */
.extern IC3BUF /* 0xBF802410 */
.extern IC4CON /* 0xBF802600 */
.extern IC4CONCLR /* 0xBF802604 */
.extern IC4CONSET /* 0xBF802608 */
.extern IC4CONINV /* 0xBF80260C */
.extern IC4BUF /* 0xBF802610 */
.extern IC5CON /* 0xBF802800 */
.extern IC5CONCLR /* 0xBF802804 */
.extern IC5CONSET /* 0xBF802808 */
.extern IC5CONINV /* 0xBF80280C */
.extern IC5BUF /* 0xBF802810 */
.extern OC1CON /* 0xBF803000 */
.extern OC1CONCLR /* 0xBF803004 */
.extern OC1CONSET /* 0xBF803008 */
.extern OC1CONINV /* 0xBF80300C */
.extern OC1R /* 0xBF803010 */
.extern OC1RCLR /* 0xBF803014 */
.extern OC1RSET /* 0xBF803018 */
.extern OC1RINV /* 0xBF80301C */
.extern OC1RS /* 0xBF803020 */
.extern OC1RSCLR /* 0xBF803024 */
.extern OC1RSSET /* 0xBF803028 */
.extern OC1RSINV /* 0xBF80302C */
.extern OC2CON /* 0xBF803200 */
.extern OC2CONCLR /* 0xBF803204 */
.extern OC2CONSET /* 0xBF803208 */
.extern OC2CONINV /* 0xBF80320C */
.extern OC2R /* 0xBF803210 */
.extern OC2RCLR /* 0xBF803214 */
.extern OC2RSET /* 0xBF803218 */
.extern OC2RINV /* 0xBF80321C */
.extern OC2RS /* 0xBF803220 */
.extern OC2RSCLR /* 0xBF803224 */
.extern OC2RSSET /* 0xBF803228 */
.extern OC2RSINV /* 0xBF80322C */
.extern OC3CON /* 0xBF803400 */
.extern OC3CONCLR /* 0xBF803404 */
.extern OC3CONSET /* 0xBF803408 */
.extern OC3CONINV /* 0xBF80340C */
.extern OC3R /* 0xBF803410 */
.extern OC3RCLR /* 0xBF803414 */
.extern OC3RSET /* 0xBF803418 */
.extern OC3RINV /* 0xBF80341C */
.extern OC3RS /* 0xBF803420 */
.extern OC3RSCLR /* 0xBF803424 */
.extern OC3RSSET /* 0xBF803428 */
.extern OC3RSINV /* 0xBF80342C */
.extern OC4CON /* 0xBF803600 */
.extern OC4CONCLR /* 0xBF803604 */
.extern OC4CONSET /* 0xBF803608 */
.extern OC4CONINV /* 0xBF80360C */
.extern OC4R /* 0xBF803610 */
.extern OC4RCLR /* 0xBF803614 */
.extern OC4RSET /* 0xBF803618 */
.extern OC4RINV /* 0xBF80361C */
.extern OC4RS /* 0xBF803620 */
.extern OC4RSCLR /* 0xBF803624 */
.extern OC4RSSET /* 0xBF803628 */
.extern OC4RSINV /* 0xBF80362C */
.extern OC5CON /* 0xBF803800 */
.extern OC5CONCLR /* 0xBF803804 */
.extern OC5CONSET /* 0xBF803808 */
.extern OC5CONINV /* 0xBF80380C */
.extern OC5R /* 0xBF803810 */
.extern OC5RCLR /* 0xBF803814 */
.extern OC5RSET /* 0xBF803818 */
.extern OC5RINV /* 0xBF80381C */
.extern OC5RS /* 0xBF803820 */
.extern OC5RSCLR /* 0xBF803824 */
.extern OC5RSSET /* 0xBF803828 */
.extern OC5RSINV /* 0xBF80382C */
.extern I2C1CON /* 0xBF805000 */
.extern I2C1CONCLR /* 0xBF805004 */
.extern I2C1CONSET /* 0xBF805008 */
.extern I2C1CONINV /* 0xBF80500C */
.extern I2C1STAT /* 0xBF805010 */
.extern I2C1STATCLR /* 0xBF805014 */
.extern I2C1STATSET /* 0xBF805018 */
.extern I2C1STATINV /* 0xBF80501C */
.extern I2C1ADD /* 0xBF805020 */
.extern I2C1ADDCLR /* 0xBF805024 */
.extern I2C1ADDSET /* 0xBF805028 */
.extern I2C1ADDINV /* 0xBF80502C */
.extern I2C1MSK /* 0xBF805030 */
.extern I2C1MSKCLR /* 0xBF805034 */
.extern I2C1MSKSET /* 0xBF805038 */
.extern I2C1MSKINV /* 0xBF80503C */
.extern I2C1BRG /* 0xBF805040 */
.extern I2C1BRGCLR /* 0xBF805044 */
.extern I2C1BRGSET /* 0xBF805048 */
.extern I2C1BRGINV /* 0xBF80504C */
.extern I2C1TRN /* 0xBF805050 */
.extern I2C1TRNCLR /* 0xBF805054 */
.extern I2C1TRNSET /* 0xBF805058 */
.extern I2C1TRNINV /* 0xBF80505C */
.extern I2C1RCV /* 0xBF805060 */
.extern I2C2CON /* 0xBF805200 */
.extern I2C2CONCLR /* 0xBF805204 */
.extern I2C2CONSET /* 0xBF805208 */
.extern I2C2CONINV /* 0xBF80520C */
.extern I2C2STAT /* 0xBF805210 */
.extern I2C2STATCLR /* 0xBF805214 */
.extern I2C2STATSET /* 0xBF805218 */
.extern I2C2STATINV /* 0xBF80521C */
.extern I2C2ADD /* 0xBF805220 */
.extern I2C2ADDCLR /* 0xBF805224 */
.extern I2C2ADDSET /* 0xBF805228 */
.extern I2C2ADDINV /* 0xBF80522C */
.extern I2C2MSK /* 0xBF805230 */
.extern I2C2MSKCLR /* 0xBF805234 */
.extern I2C2MSKSET /* 0xBF805238 */
.extern I2C2MSKINV /* 0xBF80523C */
.extern I2C2BRG /* 0xBF805240 */
.extern I2C2BRGCLR /* 0xBF805244 */
.extern I2C2BRGSET /* 0xBF805248 */
.extern I2C2BRGINV /* 0xBF80524C */
.extern I2C2TRN /* 0xBF805250 */
.extern I2C2TRNCLR /* 0xBF805254 */
.extern I2C2TRNSET /* 0xBF805258 */
.extern I2C2TRNINV /* 0xBF80525C */
.extern I2C2RCV /* 0xBF805260 */
.extern SPI1CON /* 0xBF805800 */
.extern SPI1CONCLR /* 0xBF805804 */
.extern SPI1CONSET /* 0xBF805808 */
.extern SPI1CONINV /* 0xBF80580C */
.extern SPI1STAT /* 0xBF805810 */
.extern SPI1STATCLR /* 0xBF805814 */
.extern SPI1STATSET /* 0xBF805818 */
.extern SPI1STATINV /* 0xBF80581C */
.extern SPI1BUF /* 0xBF805820 */
.extern SPI1BRG /* 0xBF805830 */
.extern SPI1BRGCLR /* 0xBF805834 */
.extern SPI1BRGSET /* 0xBF805838 */
.extern SPI1BRGINV /* 0xBF80583C */
.extern SPI2CON /* 0xBF805A00 */
.extern SPI2CONCLR /* 0xBF805A04 */
.extern SPI2CONSET /* 0xBF805A08 */
.extern SPI2CONINV /* 0xBF805A0C */
.extern SPI2STAT /* 0xBF805A10 */
.extern SPI2STATCLR /* 0xBF805A14 */
.extern SPI2STATSET /* 0xBF805A18 */
.extern SPI2STATINV /* 0xBF805A1C */
.extern SPI2BUF /* 0xBF805A20 */
.extern SPI2BRG /* 0xBF805A30 */
.extern SPI2BRGCLR /* 0xBF805A34 */
.extern SPI2BRGSET /* 0xBF805A38 */
.extern SPI2BRGINV /* 0xBF805A3C */
.extern U1MODE /* 0xBF806000 */
.extern U1MODECLR /* 0xBF806004 */
.extern U1MODESET /* 0xBF806008 */
.extern U1MODEINV /* 0xBF80600C */
.extern U1STA /* 0xBF806010 */
.extern U1STACLR /* 0xBF806014 */
.extern U1STASET /* 0xBF806018 */
.extern U1STAINV /* 0xBF80601C */
.extern U1TXREG /* 0xBF806020 */
.extern U1RXREG /* 0xBF806030 */
.extern U1BRG /* 0xBF806040 */
.extern U1BRGCLR /* 0xBF806044 */
.extern U1BRGSET /* 0xBF806048 */
.extern U1BRGINV /* 0xBF80604C */
.extern U2MODE /* 0xBF806200 */
.extern U2MODECLR /* 0xBF806204 */
.extern U2MODESET /* 0xBF806208 */
.extern U2MODEINV /* 0xBF80620C */
.extern U2STA /* 0xBF806210 */
.extern U2STACLR /* 0xBF806214 */
.extern U2STASET /* 0xBF806218 */
.extern U2STAINV /* 0xBF80621C */
.extern U2TXREG /* 0xBF806220 */
.extern U2RXREG /* 0xBF806230 */
.extern U2BRG /* 0xBF806240 */
.extern U2BRGCLR /* 0xBF806244 */
.extern U2BRGSET /* 0xBF806248 */
.extern U2BRGINV /* 0xBF80624C */
.extern PMCON /* 0xBF807000 */
.extern PMCONCLR /* 0xBF807004 */
.extern PMCONSET /* 0xBF807008 */
.extern PMCONINV /* 0xBF80700C */
.extern PMMODE /* 0xBF807010 */
.extern PMMODECLR /* 0xBF807014 */
.extern PMMODESET /* 0xBF807018 */
.extern PMMODEINV /* 0xBF80701C */
.extern PMADDR /* 0xBF807020 */
.extern PMADDRCLR /* 0xBF807024 */
.extern PMADDRSET /* 0xBF807028 */
.extern PMADDRINV /* 0xBF80702C */
.extern PMDOUT /* 0xBF807030 */
.extern PMDOUTCLR /* 0xBF807034 */
.extern PMDOUTSET /* 0xBF807038 */
.extern PMDOUTINV /* 0xBF80703C */
.extern PMDIN /* 0xBF807040 */
.extern PMDINCLR /* 0xBF807044 */
.extern PMDINSET /* 0xBF807048 */
.extern PMDININV /* 0xBF80704C */
.extern PMAEN /* 0xBF807050 */
.extern PMAENCLR /* 0xBF807054 */
.extern PMAENSET /* 0xBF807058 */
.extern PMAENINV /* 0xBF80705C */
.extern PMSTAT /* 0xBF807060 */
.extern PMSTATCLR /* 0xBF807064 */
.extern PMSTATSET /* 0xBF807068 */
.extern PMSTATINV /* 0xBF80706C */
.extern AD1CON1 /* 0xBF809000 */
.extern AD1CON1CLR /* 0xBF809004 */
.extern AD1CON1SET /* 0xBF809008 */
.extern AD1CON1INV /* 0xBF80900C */
.extern AD1CON2 /* 0xBF809010 */
.extern AD1CON2CLR /* 0xBF809014 */
.extern AD1CON2SET /* 0xBF809018 */
.extern AD1CON2INV /* 0xBF80901C */
.extern AD1CON3 /* 0xBF809020 */
.extern AD1CON3CLR /* 0xBF809024 */
.extern AD1CON3SET /* 0xBF809028 */
.extern AD1CON3INV /* 0xBF80902C */
.extern AD1CHS /* 0xBF809040 */
.extern AD1CHSCLR /* 0xBF809044 */
.extern AD1CHSSET /* 0xBF809048 */
.extern AD1CHSINV /* 0xBF80904C */
.extern AD1CSSL /* 0xBF809050 */
.extern AD1CSSLCLR /* 0xBF809054 */
.extern AD1CSSLSET /* 0xBF809058 */
.extern AD1CSSLINV /* 0xBF80905C */
.extern AD1PCFG /* 0xBF809060 */
.extern AD1PCFGCLR /* 0xBF809064 */
.extern AD1PCFGSET /* 0xBF809068 */
.extern AD1PCFGINV /* 0xBF80906C */
.extern ADC1BUF0 /* 0xBF809070 */
.extern ADC1BUF1 /* 0xBF809080 */
.extern ADC1BUF2 /* 0xBF809090 */
.extern ADC1BUF3 /* 0xBF8090A0 */
.extern ADC1BUF4 /* 0xBF8090B0 */
.extern ADC1BUF5 /* 0xBF8090C0 */
.extern ADC1BUF6 /* 0xBF8090D0 */
.extern ADC1BUF7 /* 0xBF8090E0 */
.extern ADC1BUF8 /* 0xBF8090F0 */
.extern ADC1BUF9 /* 0xBF809100 */
.extern ADC1BUFA /* 0xBF809110 */
.extern ADC1BUFB /* 0xBF809120 */
.extern ADC1BUFC /* 0xBF809130 */
.extern ADC1BUFD /* 0xBF809140 */
.extern ADC1BUFE /* 0xBF809150 */
.extern ADC1BUFF /* 0xBF809160 */
.extern CVRCON /* 0xBF809800 */
.extern CVRCONCLR /* 0xBF809804 */
.extern CVRCONSET /* 0xBF809808 */
.extern CVRCONINV /* 0xBF80980C */
.extern CM1CON /* 0xBF80A000 */
.extern CM1CONCLR /* 0xBF80A004 */
.extern CM1CONSET /* 0xBF80A008 */
.extern CM1CONINV /* 0xBF80A00C */
.extern CM2CON /* 0xBF80A010 */
.extern CM2CONCLR /* 0xBF80A014 */
.extern CM2CONSET /* 0xBF80A018 */
.extern CM2CONINV /* 0xBF80A01C */
.extern CMSTAT /* 0xBF80A060 */
.extern CMSTATCLR /* 0xBF80A064 */
.extern CMSTATSET /* 0xBF80A068 */
.extern CMSTATINV /* 0xBF80A06C */
.extern OSCCON /* 0xBF80F000 */
.extern OSCCONCLR /* 0xBF80F004 */
.extern OSCCONSET /* 0xBF80F008 */
.extern OSCCONINV /* 0xBF80F00C */
.extern OSCTUN /* 0xBF80F010 */
.extern OSCTUNCLR /* 0xBF80F014 */
.extern OSCTUNSET /* 0xBF80F018 */
.extern OSCTUNINV /* 0xBF80F01C */
.extern DDPCON /* 0xBF80F200 */
.extern DEVID /* 0xBF80F220 */
.extern SYSKEY /* 0xBF80F230 */
.extern SYSKEYCLR /* 0xBF80F234 */
.extern SYSKEYSET /* 0xBF80F238 */
.extern SYSKEYINV /* 0xBF80F23C */
.extern NVMCON /* 0xBF80F400 */
.extern NVMCONCLR /* 0xBF80F404 */
.extern NVMCONSET /* 0xBF80F408 */
.extern NVMCONINV /* 0xBF80F40C */
.extern NVMKEY /* 0xBF80F410 */
.extern NVMADDR /* 0xBF80F420 */
.extern NVMADDRCLR /* 0xBF80F424 */
.extern NVMADDRSET /* 0xBF80F428 */
.extern NVMADDRINV /* 0xBF80F42C */
.extern NVMDATA /* 0xBF80F430 */
.extern NVMSRCADDR /* 0xBF80F440 */
.extern RCON /* 0xBF80F600 */
.extern RCONCLR /* 0xBF80F604 */
.extern RCONSET /* 0xBF80F608 */
.extern RCONINV /* 0xBF80F60C */
.extern RSWRST /* 0xBF80F610 */
.extern RSWRSTCLR /* 0xBF80F614 */
.extern RSWRSTSET /* 0xBF80F618 */
.extern RSWRSTINV /* 0xBF80F61C */
.extern _DDPSTAT /* 0xBF880140 */
.extern _STRO /* 0xBF880170 */
.extern _STROCLR /* 0xBF880174 */
.extern _STROSET /* 0xBF880178 */
.extern _STROINV /* 0xBF88017C */
.extern _APPO /* 0xBF880180 */
.extern _APPOCLR /* 0xBF880184 */
.extern _APPOSET /* 0xBF880188 */
.extern _APPOINV /* 0xBF88018C */
.extern _APPI /* 0xBF880190 */
.extern INTCON /* 0xBF881000 */
.extern INTCONCLR /* 0xBF881004 */
.extern INTCONSET /* 0xBF881008 */
.extern INTCONINV /* 0xBF88100C */
.extern INTSTAT /* 0xBF881010 */
.extern IPTMR /* 0xBF881020 */
.extern IPTMRCLR /* 0xBF881024 */
.extern IPTMRSET /* 0xBF881028 */
.extern IPTMRINV /* 0xBF88102C */
.extern IFS0 /* 0xBF881030 */
.extern IFS0CLR /* 0xBF881034 */
.extern IFS0SET /* 0xBF881038 */
.extern IFS0INV /* 0xBF88103C */
.extern IFS1 /* 0xBF881040 */
.extern IFS1CLR /* 0xBF881044 */
.extern IFS1SET /* 0xBF881048 */
.extern IFS1INV /* 0xBF88104C */
.extern IEC0 /* 0xBF881060 */
.extern IEC0CLR /* 0xBF881064 */
.extern IEC0SET /* 0xBF881068 */
.extern IEC0INV /* 0xBF88106C */
.extern IEC1 /* 0xBF881070 */
.extern IEC1CLR /* 0xBF881074 */
.extern IEC1SET /* 0xBF881078 */
.extern IEC1INV /* 0xBF88107C */
.extern IPC0 /* 0xBF881090 */
.extern IPC0CLR /* 0xBF881094 */
.extern IPC0SET /* 0xBF881098 */
.extern IPC0INV /* 0xBF88109C */
.extern IPC1 /* 0xBF8810A0 */
.extern IPC1CLR /* 0xBF8810A4 */
.extern IPC1SET /* 0xBF8810A8 */
.extern IPC1INV /* 0xBF8810AC */
.extern IPC2 /* 0xBF8810B0 */
.extern IPC2CLR /* 0xBF8810B4 */
.extern IPC2SET /* 0xBF8810B8 */
.extern IPC2INV /* 0xBF8810BC */
.extern IPC3 /* 0xBF8810C0 */
.extern IPC3CLR /* 0xBF8810C4 */
.extern IPC3SET /* 0xBF8810C8 */
.extern IPC3INV /* 0xBF8810CC */
.extern IPC4 /* 0xBF8810D0 */
.extern IPC4CLR /* 0xBF8810D4 */
.extern IPC4SET /* 0xBF8810D8 */
.extern IPC4INV /* 0xBF8810DC */
.extern IPC5 /* 0xBF8810E0 */
.extern IPC5CLR /* 0xBF8810E4 */
.extern IPC5SET /* 0xBF8810E8 */
.extern IPC5INV /* 0xBF8810EC */
.extern IPC6 /* 0xBF8810F0 */
.extern IPC6CLR /* 0xBF8810F4 */
.extern IPC6SET /* 0xBF8810F8 */
.extern IPC6INV /* 0xBF8810FC */
.extern IPC7 /* 0xBF881100 */
.extern IPC7CLR /* 0xBF881104 */
.extern IPC7SET /* 0xBF881108 */
.extern IPC7INV /* 0xBF88110C */
.extern IPC8 /* 0xBF881110 */
.extern IPC8CLR /* 0xBF881114 */
.extern IPC8SET /* 0xBF881118 */
.extern IPC8INV /* 0xBF88111C */
.extern IPC9 /* 0xBF881120 */
.extern IPC9CLR /* 0xBF881124 */
.extern IPC9SET /* 0xBF881128 */
.extern IPC9INV /* 0xBF88112C */
.extern IPC11 /* 0xBF881140 */
.extern IPC11CLR /* 0xBF881144 */
.extern IPC11SET /* 0xBF881148 */
.extern IPC11INV /* 0xBF88114C */
.extern BMXCON /* 0xBF882000 */
.extern BMXCONCLR /* 0xBF882004 */
.extern BMXCONSET /* 0xBF882008 */
.extern BMXCONINV /* 0xBF88200C */
.extern BMXDKPBA /* 0xBF882010 */
.extern BMXDKPBACLR /* 0xBF882014 */
.extern BMXDKPBASET /* 0xBF882018 */
.extern BMXDKPBAINV /* 0xBF88201C */
.extern BMXDUDBA /* 0xBF882020 */
.extern BMXDUDBACLR /* 0xBF882024 */
.extern BMXDUDBASET /* 0xBF882028 */
.extern BMXDUDBAINV /* 0xBF88202C */
.extern BMXDUPBA /* 0xBF882030 */
.extern BMXDUPBACLR /* 0xBF882034 */
.extern BMXDUPBASET /* 0xBF882038 */
.extern BMXDUPBAINV /* 0xBF88203C */
.extern BMXDRMSZ /* 0xBF882040 */
.extern BMXPUPBA /* 0xBF882050 */
.extern BMXPUPBACLR /* 0xBF882054 */
.extern BMXPUPBASET /* 0xBF882058 */
.extern BMXPUPBAINV /* 0xBF88205C */
.extern BMXPFMSZ /* 0xBF882060 */
.extern BMXBOOTSZ /* 0xBF882070 */
.extern DMACON /* 0xBF883000 */
.extern DMACONCLR /* 0xBF883004 */
.extern DMACONSET /* 0xBF883008 */
.extern DMACONINV /* 0xBF88300C */
.extern DMASTAT /* 0xBF883010 */
.extern DMASTATCLR /* 0xBF883014 */
.extern DMASTATSET /* 0xBF883018 */
.extern DMASTATINV /* 0xBF88301C */
.extern DMAADDR /* 0xBF883020 */
.extern DMAADDRCLR /* 0xBF883024 */
.extern DMAADDRSET /* 0xBF883028 */
.extern DMAADDRINV /* 0xBF88302C */
.extern DCRCCON /* 0xBF883030 */
.extern DCRCCONCLR /* 0xBF883034 */
.extern DCRCCONSET /* 0xBF883038 */
.extern DCRCCONINV /* 0xBF88303C */
.extern DCRCDATA /* 0xBF883040 */
.extern DCRCDATACLR /* 0xBF883044 */
.extern DCRCDATASET /* 0xBF883048 */
.extern DCRCDATAINV /* 0xBF88304C */
.extern DCRCXOR /* 0xBF883050 */
.extern DCRCXORCLR /* 0xBF883054 */
.extern DCRCXORSET /* 0xBF883058 */
.extern DCRCXORINV /* 0xBF88305C */
.extern DCH0CON /* 0xBF883060 */
.extern DCH0CONCLR /* 0xBF883064 */
.extern DCH0CONSET /* 0xBF883068 */
.extern DCH0CONINV /* 0xBF88306C */
.extern DCH0ECON /* 0xBF883070 */
.extern DCH0ECONCLR /* 0xBF883074 */
.extern DCH0ECONSET /* 0xBF883078 */
.extern DCH0ECONINV /* 0xBF88307C */
.extern DCH0INT /* 0xBF883080 */
.extern DCH0INTCLR /* 0xBF883084 */
.extern DCH0INTSET /* 0xBF883088 */
.extern DCH0INTINV /* 0xBF88308C */
.extern DCH0SSA /* 0xBF883090 */
.extern DCH0SSACLR /* 0xBF883094 */
.extern DCH0SSASET /* 0xBF883098 */
.extern DCH0SSAINV /* 0xBF88309C */
.extern DCH0DSA /* 0xBF8830A0 */
.extern DCH0DSACLR /* 0xBF8830A4 */
.extern DCH0DSASET /* 0xBF8830A8 */
.extern DCH0DSAINV /* 0xBF8830AC */
.extern DCH0SSIZ /* 0xBF8830B0 */
.extern DCH0SSIZCLR /* 0xBF8830B4 */
.extern DCH0SSIZSET /* 0xBF8830B8 */
.extern DCH0SSIZINV /* 0xBF8830BC */
.extern DCH0DSIZ /* 0xBF8830C0 */
.extern DCH0DSIZCLR /* 0xBF8830C4 */
.extern DCH0DSIZSET /* 0xBF8830C8 */
.extern DCH0DSIZINV /* 0xBF8830CC */
.extern DCH0SPTR /* 0xBF8830D0 */
.extern DCH0SPTRCLR /* 0xBF8830D4 */
.extern DCH0SPTRSET /* 0xBF8830D8 */
.extern DCH0SPTRINV /* 0xBF8830DC */
.extern DCH0DPTR /* 0xBF8830E0 */
.extern DCH0DPTRCLR /* 0xBF8830E4 */
.extern DCH0DPTRSET /* 0xBF8830E8 */
.extern DCH0DPTRINV /* 0xBF8830EC */
.extern DCH0CSIZ /* 0xBF8830F0 */
.extern DCH0CSIZCLR /* 0xBF8830F4 */
.extern DCH0CSIZSET /* 0xBF8830F8 */
.extern DCH0CSIZINV /* 0xBF8830FC */
.extern DCH0CPTR /* 0xBF883100 */
.extern DCH0CPTRCLR /* 0xBF883104 */
.extern DCH0CPTRSET /* 0xBF883108 */
.extern DCH0CPTRINV /* 0xBF88310C */
.extern DCH0DAT /* 0xBF883110 */
.extern DCH0DATCLR /* 0xBF883114 */
.extern DCH0DATSET /* 0xBF883118 */
.extern DCH0DATINV /* 0xBF88311C */
.extern DCH1CON /* 0xBF883120 */
.extern DCH1CONCLR /* 0xBF883124 */
.extern DCH1CONSET /* 0xBF883128 */
.extern DCH1CONINV /* 0xBF88312C */
.extern DCH1ECON /* 0xBF883130 */
.extern DCH1ECONCLR /* 0xBF883134 */
.extern DCH1ECONSET /* 0xBF883138 */
.extern DCH1ECONINV /* 0xBF88313C */
.extern DCH1INT /* 0xBF883140 */
.extern DCH1INTCLR /* 0xBF883144 */
.extern DCH1INTSET /* 0xBF883148 */
.extern DCH1INTINV /* 0xBF88314C */
.extern DCH1SSA /* 0xBF883150 */
.extern DCH1SSACLR /* 0xBF883154 */
.extern DCH1SSASET /* 0xBF883158 */
.extern DCH1SSAINV /* 0xBF88315C */
.extern DCH1DSA /* 0xBF883160 */
.extern DCH1DSACLR /* 0xBF883164 */
.extern DCH1DSASET /* 0xBF883168 */
.extern DCH1DSAINV /* 0xBF88316C */
.extern DCH1SSIZ /* 0xBF883170 */
.extern DCH1SSIZCLR /* 0xBF883174 */
.extern DCH1SSIZSET /* 0xBF883178 */
.extern DCH1SSIZINV /* 0xBF88317C */
.extern DCH1DSIZ /* 0xBF883180 */
.extern DCH1DSIZCLR /* 0xBF883184 */
.extern DCH1DSIZSET /* 0xBF883188 */
.extern DCH1DSIZINV /* 0xBF88318C */
.extern DCH1SPTR /* 0xBF883190 */
.extern DCH1SPTRCLR /* 0xBF883194 */
.extern DCH1SPTRSET /* 0xBF883198 */
.extern DCH1SPTRINV /* 0xBF88319C */
.extern DCH1DPTR /* 0xBF8831A0 */
.extern DCH1DPTRCLR /* 0xBF8831A4 */
.extern DCH1DPTRSET /* 0xBF8831A8 */
.extern DCH1DPTRINV /* 0xBF8831AC */
.extern DCH1CSIZ /* 0xBF8831B0 */
.extern DCH1CSIZCLR /* 0xBF8831B4 */
.extern DCH1CSIZSET /* 0xBF8831B8 */
.extern DCH1CSIZINV /* 0xBF8831BC */
.extern DCH1CPTR /* 0xBF8831C0 */
.extern DCH1CPTRCLR /* 0xBF8831C4 */
.extern DCH1CPTRSET /* 0xBF8831C8 */
.extern DCH1CPTRINV /* 0xBF8831CC */
.extern DCH1DAT /* 0xBF8831D0 */
.extern DCH1DATCLR /* 0xBF8831D4 */
.extern DCH1DATSET /* 0xBF8831D8 */
.extern DCH1DATINV /* 0xBF8831DC */
.extern DCH2CON /* 0xBF8831E0 */
.extern DCH2CONCLR /* 0xBF8831E4 */
.extern DCH2CONSET /* 0xBF8831E8 */
.extern DCH2CONINV /* 0xBF8831EC */
.extern DCH2ECON /* 0xBF8831F0 */
.extern DCH2ECONCLR /* 0xBF8831F4 */
.extern DCH2ECONSET /* 0xBF8831F8 */
.extern DCH2ECONINV /* 0xBF8831FC */
.extern DCH2INT /* 0xBF883200 */
.extern DCH2INTCLR /* 0xBF883204 */
.extern DCH2INTSET /* 0xBF883208 */
.extern DCH2INTINV /* 0xBF88320C */
.extern DCH2SSA /* 0xBF883210 */
.extern DCH2SSACLR /* 0xBF883214 */
.extern DCH2SSASET /* 0xBF883218 */
.extern DCH2SSAINV /* 0xBF88321C */
.extern DCH2DSA /* 0xBF883220 */
.extern DCH2DSACLR /* 0xBF883224 */
.extern DCH2DSASET /* 0xBF883228 */
.extern DCH2DSAINV /* 0xBF88322C */
.extern DCH2SSIZ /* 0xBF883230 */
.extern DCH2SSIZCLR /* 0xBF883234 */
.extern DCH2SSIZSET /* 0xBF883238 */
.extern DCH2SSIZINV /* 0xBF88323C */
.extern DCH2DSIZ /* 0xBF883240 */
.extern DCH2DSIZCLR /* 0xBF883244 */
.extern DCH2DSIZSET /* 0xBF883248 */
.extern DCH2DSIZINV /* 0xBF88324C */
.extern DCH2SPTR /* 0xBF883250 */
.extern DCH2SPTRCLR /* 0xBF883254 */
.extern DCH2SPTRSET /* 0xBF883258 */
.extern DCH2SPTRINV /* 0xBF88325C */
.extern DCH2DPTR /* 0xBF883260 */
.extern DCH2DPTRCLR /* 0xBF883264 */
.extern DCH2DPTRSET /* 0xBF883268 */
.extern DCH2DPTRINV /* 0xBF88326C */
.extern DCH2CSIZ /* 0xBF883270 */
.extern DCH2CSIZCLR /* 0xBF883274 */
.extern DCH2CSIZSET /* 0xBF883278 */
.extern DCH2CSIZINV /* 0xBF88327C */
.extern DCH2CPTR /* 0xBF883280 */
.extern DCH2CPTRCLR /* 0xBF883284 */
.extern DCH2CPTRSET /* 0xBF883288 */
.extern DCH2CPTRINV /* 0xBF88328C */
.extern DCH2DAT /* 0xBF883290 */
.extern DCH2DATCLR /* 0xBF883294 */
.extern DCH2DATSET /* 0xBF883298 */
.extern DCH2DATINV /* 0xBF88329C */
.extern DCH3CON /* 0xBF8832A0 */
.extern DCH3CONCLR /* 0xBF8832A4 */
.extern DCH3CONSET /* 0xBF8832A8 */
.extern DCH3CONINV /* 0xBF8832AC */
.extern DCH3ECON /* 0xBF8832B0 */
.extern DCH3ECONCLR /* 0xBF8832B4 */
.extern DCH3ECONSET /* 0xBF8832B8 */
.extern DCH3ECONINV /* 0xBF8832BC */
.extern DCH3INT /* 0xBF8832C0 */
.extern DCH3INTCLR /* 0xBF8832C4 */
.extern DCH3INTSET /* 0xBF8832C8 */
.extern DCH3INTINV /* 0xBF8832CC */
.extern DCH3SSA /* 0xBF8832D0 */
.extern DCH3SSACLR /* 0xBF8832D4 */
.extern DCH3SSASET /* 0xBF8832D8 */
.extern DCH3SSAINV /* 0xBF8832DC */
.extern DCH3DSA /* 0xBF8832E0 */
.extern DCH3DSACLR /* 0xBF8832E4 */
.extern DCH3DSASET /* 0xBF8832E8 */
.extern DCH3DSAINV /* 0xBF8832EC */
.extern DCH3SSIZ /* 0xBF8832F0 */
.extern DCH3SSIZCLR /* 0xBF8832F4 */
.extern DCH3SSIZSET /* 0xBF8832F8 */
.extern DCH3SSIZINV /* 0xBF8832FC */
.extern DCH3DSIZ /* 0xBF883300 */
.extern DCH3DSIZCLR /* 0xBF883304 */
.extern DCH3DSIZSET /* 0xBF883308 */
.extern DCH3DSIZINV /* 0xBF88330C */
.extern DCH3SPTR /* 0xBF883310 */
.extern DCH3SPTRCLR /* 0xBF883314 */
.extern DCH3SPTRSET /* 0xBF883318 */
.extern DCH3SPTRINV /* 0xBF88331C */
.extern DCH3DPTR /* 0xBF883320 */
.extern DCH3DPTRCLR /* 0xBF883324 */
.extern DCH3DPTRSET /* 0xBF883328 */
.extern DCH3DPTRINV /* 0xBF88332C */
.extern DCH3CSIZ /* 0xBF883330 */
.extern DCH3CSIZCLR /* 0xBF883334 */
.extern DCH3CSIZSET /* 0xBF883338 */
.extern DCH3CSIZINV /* 0xBF88333C */
.extern DCH3CPTR /* 0xBF883340 */
.extern DCH3CPTRCLR /* 0xBF883344 */
.extern DCH3CPTRSET /* 0xBF883348 */
.extern DCH3CPTRINV /* 0xBF88334C */
.extern DCH3DAT /* 0xBF883350 */
.extern DCH3DATCLR /* 0xBF883354 */
.extern DCH3DATSET /* 0xBF883358 */
.extern DCH3DATINV /* 0xBF88335C */
.extern CHECON /* 0xBF884000 */
.extern CHECONCLR /* 0xBF884004 */
.extern CHECONSET /* 0xBF884008 */
.extern CHECONINV /* 0xBF88400C */
.extern CHEACC /* 0xBF884010 */
.extern CHEACCCLR /* 0xBF884014 */
.extern CHEACCSET /* 0xBF884018 */
.extern CHEACCINV /* 0xBF88401C */
.extern CHETAG /* 0xBF884020 */
.extern CHETAGCLR /* 0xBF884024 */
.extern CHETAGSET /* 0xBF884028 */
.extern CHETAGINV /* 0xBF88402C */
.extern CHEMSK /* 0xBF884030 */
.extern CHEMSKCLR /* 0xBF884034 */
.extern CHEMSKSET /* 0xBF884038 */
.extern CHEMSKINV /* 0xBF88403C */
.extern CHEW0 /* 0xBF884040 */
.extern CHEW1 /* 0xBF884050 */
.extern CHEW2 /* 0xBF884060 */
.extern CHEW3 /* 0xBF884070 */
.extern CHELRU /* 0xBF884080 */
.extern CHEHIT /* 0xBF884090 */
.extern CHEMIS /* 0xBF8840A0 */
.extern CHEPFABT /* 0xBF8840C0 */
.extern TRISA /* 0xBF886000 */
.extern TRISACLR /* 0xBF886004 */
.extern TRISASET /* 0xBF886008 */
.extern TRISAINV /* 0xBF88600C */
.extern PORTA /* 0xBF886010 */
.extern PORTACLR /* 0xBF886014 */
.extern PORTASET /* 0xBF886018 */
.extern PORTAINV /* 0xBF88601C */
.extern LATA /* 0xBF886020 */
.extern LATACLR /* 0xBF886024 */
.extern LATASET /* 0xBF886028 */
.extern LATAINV /* 0xBF88602C */
.extern ODCA /* 0xBF886030 */
.extern ODCACLR /* 0xBF886034 */
.extern ODCASET /* 0xBF886038 */
.extern ODCAINV /* 0xBF88603C */
.extern TRISB /* 0xBF886040 */
.extern TRISBCLR /* 0xBF886044 */
.extern TRISBSET /* 0xBF886048 */
.extern TRISBINV /* 0xBF88604C */
.extern PORTB /* 0xBF886050 */
.extern PORTBCLR /* 0xBF886054 */
.extern PORTBSET /* 0xBF886058 */
.extern PORTBINV /* 0xBF88605C */
.extern LATB /* 0xBF886060 */
.extern LATBCLR /* 0xBF886064 */
.extern LATBSET /* 0xBF886068 */
.extern LATBINV /* 0xBF88606C */
.extern ODCB /* 0xBF886070 */
.extern ODCBCLR /* 0xBF886074 */
.extern ODCBSET /* 0xBF886078 */
.extern ODCBINV /* 0xBF88607C */
.extern TRISC /* 0xBF886080 */
.extern TRISCCLR /* 0xBF886084 */
.extern TRISCSET /* 0xBF886088 */
.extern TRISCINV /* 0xBF88608C */
.extern PORTC /* 0xBF886090 */
.extern PORTCCLR /* 0xBF886094 */
.extern PORTCSET /* 0xBF886098 */
.extern PORTCINV /* 0xBF88609C */
.extern LATC /* 0xBF8860A0 */
.extern LATCCLR /* 0xBF8860A4 */
.extern LATCSET /* 0xBF8860A8 */
.extern LATCINV /* 0xBF8860AC */
.extern ODCC /* 0xBF8860B0 */
.extern ODCCCLR /* 0xBF8860B4 */
.extern ODCCSET /* 0xBF8860B8 */
.extern ODCCINV /* 0xBF8860BC */
.extern TRISD /* 0xBF8860C0 */
.extern TRISDCLR /* 0xBF8860C4 */
.extern TRISDSET /* 0xBF8860C8 */
.extern TRISDINV /* 0xBF8860CC */
.extern PORTD /* 0xBF8860D0 */
.extern PORTDCLR /* 0xBF8860D4 */
.extern PORTDSET /* 0xBF8860D8 */
.extern PORTDINV /* 0xBF8860DC */
.extern LATD /* 0xBF8860E0 */
.extern LATDCLR /* 0xBF8860E4 */
.extern LATDSET /* 0xBF8860E8 */
.extern LATDINV /* 0xBF8860EC */
.extern ODCD /* 0xBF8860F0 */
.extern ODCDCLR /* 0xBF8860F4 */
.extern ODCDSET /* 0xBF8860F8 */
.extern ODCDINV /* 0xBF8860FC */
.extern TRISE /* 0xBF886100 */
.extern TRISECLR /* 0xBF886104 */
.extern TRISESET /* 0xBF886108 */
.extern TRISEINV /* 0xBF88610C */
.extern PORTE /* 0xBF886110 */
.extern PORTECLR /* 0xBF886114 */
.extern PORTESET /* 0xBF886118 */
.extern PORTEINV /* 0xBF88611C */
.extern LATE /* 0xBF886120 */
.extern LATECLR /* 0xBF886124 */
.extern LATESET /* 0xBF886128 */
.extern LATEINV /* 0xBF88612C */
.extern ODCE /* 0xBF886130 */
.extern ODCECLR /* 0xBF886134 */
.extern ODCESET /* 0xBF886138 */
.extern ODCEINV /* 0xBF88613C */
.extern TRISF /* 0xBF886140 */
.extern TRISFCLR /* 0xBF886144 */
.extern TRISFSET /* 0xBF886148 */
.extern TRISFINV /* 0xBF88614C */
.extern PORTF /* 0xBF886150 */
.extern PORTFCLR /* 0xBF886154 */
.extern PORTFSET /* 0xBF886158 */
.extern PORTFINV /* 0xBF88615C */
.extern LATF /* 0xBF886160 */
.extern LATFCLR /* 0xBF886164 */
.extern LATFSET /* 0xBF886168 */
.extern LATFINV /* 0xBF88616C */
.extern ODCF /* 0xBF886170 */
.extern ODCFCLR /* 0xBF886174 */
.extern ODCFSET /* 0xBF886178 */
.extern ODCFINV /* 0xBF88617C */
.extern TRISG /* 0xBF886180 */
.extern TRISGCLR /* 0xBF886184 */
.extern TRISGSET /* 0xBF886188 */
.extern TRISGINV /* 0xBF88618C */
.extern PORTG /* 0xBF886190 */
.extern PORTGCLR /* 0xBF886194 */
.extern PORTGSET /* 0xBF886198 */
.extern PORTGINV /* 0xBF88619C */
.extern LATG /* 0xBF8861A0 */
.extern LATGCLR /* 0xBF8861A4 */
.extern LATGSET /* 0xBF8861A8 */
.extern LATGINV /* 0xBF8861AC */
.extern ODCG /* 0xBF8861B0 */
.extern ODCGCLR /* 0xBF8861B4 */
.extern ODCGSET /* 0xBF8861B8 */
.extern ODCGINV /* 0xBF8861BC */
.extern CNCON /* 0xBF8861C0 */
.extern CNCONCLR /* 0xBF8861C4 */
.extern CNCONSET /* 0xBF8861C8 */
.extern CNCONINV /* 0xBF8861CC */
.extern CNEN /* 0xBF8861D0 */
.extern CNENCLR /* 0xBF8861D4 */
.extern CNENSET /* 0xBF8861D8 */
.extern CNENINV /* 0xBF8861DC */
.extern CNPUE /* 0xBF8861E0 */
.extern CNPUECLR /* 0xBF8861E4 */
.extern CNPUESET /* 0xBF8861E8 */
.extern CNPUEINV /* 0xBF8861EC */
.extern DEVCFG3 /* 0xBFC02FF0 */
.extern DEVCFG2 /* 0xBFC02FF4 */
.extern DEVCFG1 /* 0xBFC02FF8 */
.extern DEVCFG0 /* 0xBFC02FFC */
#else
#error Unknown language!
#endif
#define _WDTCON_WDTCLR_POSITION 0x00000000
#define _WDTCON_WDTCLR_MASK 0x00000001
#define _WDTCON_WDTCLR_LENGTH 0x00000001
#define _WDTCON_SWDTPS_POSITION 0x00000002
#define _WDTCON_SWDTPS_MASK 0x0000007C
#define _WDTCON_SWDTPS_LENGTH 0x00000005
#define _WDTCON_ON_POSITION 0x0000000F
#define _WDTCON_ON_MASK 0x00008000
#define _WDTCON_ON_LENGTH 0x00000001
#define _WDTCON_SWDTPS0_POSITION 0x00000002
#define _WDTCON_SWDTPS0_MASK 0x00000004
#define _WDTCON_SWDTPS0_LENGTH 0x00000001
#define _WDTCON_SWDTPS1_POSITION 0x00000003
#define _WDTCON_SWDTPS1_MASK 0x00000008
#define _WDTCON_SWDTPS1_LENGTH 0x00000001
#define _WDTCON_SWDTPS2_POSITION 0x00000004
#define _WDTCON_SWDTPS2_MASK 0x00000010
#define _WDTCON_SWDTPS2_LENGTH 0x00000001
#define _WDTCON_SWDTPS3_POSITION 0x00000005
#define _WDTCON_SWDTPS3_MASK 0x00000020
#define _WDTCON_SWDTPS3_LENGTH 0x00000001
#define _WDTCON_SWDTPS4_POSITION 0x00000006
#define _WDTCON_SWDTPS4_MASK 0x00000040
#define _WDTCON_SWDTPS4_LENGTH 0x00000001
#define _WDTCON_WDTPSTA_POSITION 0x00000002
#define _WDTCON_WDTPSTA_MASK 0x0000007C
#define _WDTCON_WDTPSTA_LENGTH 0x00000005
#define _WDTCON_WDTPS_POSITION 0x00000002
#define _WDTCON_WDTPS_MASK 0x0000007C
#define _WDTCON_WDTPS_LENGTH 0x00000005
#define _WDTCON_w_POSITION 0x00000000
#define _WDTCON_w_MASK 0xFFFFFFFF
#define _WDTCON_w_LENGTH 0x00000020
#define _RTCCON_RTCOE_POSITION 0x00000000
#define _RTCCON_RTCOE_MASK 0x00000001
#define _RTCCON_RTCOE_LENGTH 0x00000001
#define _RTCCON_HALFSEC_POSITION 0x00000001
#define _RTCCON_HALFSEC_MASK 0x00000002
#define _RTCCON_HALFSEC_LENGTH 0x00000001
#define _RTCCON_RTCSYNC_POSITION 0x00000002
#define _RTCCON_RTCSYNC_MASK 0x00000004
#define _RTCCON_RTCSYNC_LENGTH 0x00000001
#define _RTCCON_RTCWREN_POSITION 0x00000003
#define _RTCCON_RTCWREN_MASK 0x00000008
#define _RTCCON_RTCWREN_LENGTH 0x00000001
#define _RTCCON_RTCCLKON_POSITION 0x00000006
#define _RTCCON_RTCCLKON_MASK 0x00000040
#define _RTCCON_RTCCLKON_LENGTH 0x00000001
#define _RTCCON_RTSECSEL_POSITION 0x00000007
#define _RTCCON_RTSECSEL_MASK 0x00000080
#define _RTCCON_RTSECSEL_LENGTH 0x00000001
#define _RTCCON_SIDL_POSITION 0x0000000D
#define _RTCCON_SIDL_MASK 0x00002000
#define _RTCCON_SIDL_LENGTH 0x00000001
#define _RTCCON_ON_POSITION 0x0000000F
#define _RTCCON_ON_MASK 0x00008000
#define _RTCCON_ON_LENGTH 0x00000001
#define _RTCCON_CAL_POSITION 0x00000010
#define _RTCCON_CAL_MASK 0x03FF0000
#define _RTCCON_CAL_LENGTH 0x0000000A
#define _RTCCON_w_POSITION 0x00000000
#define _RTCCON_w_MASK 0xFFFFFFFF
#define _RTCCON_w_LENGTH 0x00000020
#define _RTCALRM_ARPT_POSITION 0x00000000
#define _RTCALRM_ARPT_MASK 0x000000FF
#define _RTCALRM_ARPT_LENGTH 0x00000008
#define _RTCALRM_AMASK_POSITION 0x00000008
#define _RTCALRM_AMASK_MASK 0x00000F00
#define _RTCALRM_AMASK_LENGTH 0x00000004
#define _RTCALRM_ALRMSYNC_POSITION 0x0000000C
#define _RTCALRM_ALRMSYNC_MASK 0x00001000
#define _RTCALRM_ALRMSYNC_LENGTH 0x00000001
#define _RTCALRM_PIV_POSITION 0x0000000D
#define _RTCALRM_PIV_MASK 0x00002000
#define _RTCALRM_PIV_LENGTH 0x00000001
#define _RTCALRM_CHIME_POSITION 0x0000000E
#define _RTCALRM_CHIME_MASK 0x00004000
#define _RTCALRM_CHIME_LENGTH 0x00000001
#define _RTCALRM_ALRMEN_POSITION 0x0000000F
#define _RTCALRM_ALRMEN_MASK 0x00008000
#define _RTCALRM_ALRMEN_LENGTH 0x00000001
#define _RTCALRM_w_POSITION 0x00000000
#define _RTCALRM_w_MASK 0xFFFFFFFF
#define _RTCALRM_w_LENGTH 0x00000020
#define _RTCTIME_SEC01_POSITION 0x00000008
#define _RTCTIME_SEC01_MASK 0x00000F00
#define _RTCTIME_SEC01_LENGTH 0x00000004
#define _RTCTIME_SEC10_POSITION 0x0000000C
#define _RTCTIME_SEC10_MASK 0x0000F000
#define _RTCTIME_SEC10_LENGTH 0x00000004
#define _RTCTIME_MIN01_POSITION 0x00000010
#define _RTCTIME_MIN01_MASK 0x000F0000
#define _RTCTIME_MIN01_LENGTH 0x00000004
#define _RTCTIME_MIN10_POSITION 0x00000014
#define _RTCTIME_MIN10_MASK 0x00F00000
#define _RTCTIME_MIN10_LENGTH 0x00000004
#define _RTCTIME_HR01_POSITION 0x00000018
#define _RTCTIME_HR01_MASK 0x0F000000
#define _RTCTIME_HR01_LENGTH 0x00000004
#define _RTCTIME_HR10_POSITION 0x0000001C
#define _RTCTIME_HR10_MASK 0xF0000000
#define _RTCTIME_HR10_LENGTH 0x00000004
#define _RTCTIME_w_POSITION 0x00000000
#define _RTCTIME_w_MASK 0xFFFFFFFF
#define _RTCTIME_w_LENGTH 0x00000020
#define _RTCDATE_WDAY01_POSITION 0x00000000
#define _RTCDATE_WDAY01_MASK 0x0000000F
#define _RTCDATE_WDAY01_LENGTH 0x00000004
#define _RTCDATE_DAY01_POSITION 0x00000008
#define _RTCDATE_DAY01_MASK 0x00000F00
#define _RTCDATE_DAY01_LENGTH 0x00000004
#define _RTCDATE_DAY10_POSITION 0x0000000C
#define _RTCDATE_DAY10_MASK 0x0000F000
#define _RTCDATE_DAY10_LENGTH 0x00000004
#define _RTCDATE_MONTH01_POSITION 0x00000010
#define _RTCDATE_MONTH01_MASK 0x000F0000
#define _RTCDATE_MONTH01_LENGTH 0x00000004
#define _RTCDATE_MONTH10_POSITION 0x00000014
#define _RTCDATE_MONTH10_MASK 0x00F00000
#define _RTCDATE_MONTH10_LENGTH 0x00000004
#define _RTCDATE_YEAR01_POSITION 0x00000018
#define _RTCDATE_YEAR01_MASK 0x0F000000
#define _RTCDATE_YEAR01_LENGTH 0x00000004
#define _RTCDATE_YEAR10_POSITION 0x0000001C
#define _RTCDATE_YEAR10_MASK 0xF0000000
#define _RTCDATE_YEAR10_LENGTH 0x00000004
#define _RTCDATE_w_POSITION 0x00000000
#define _RTCDATE_w_MASK 0xFFFFFFFF
#define _RTCDATE_w_LENGTH 0x00000020
#define _ALRMTIME_SEC01_POSITION 0x00000008
#define _ALRMTIME_SEC01_MASK 0x00000F00
#define _ALRMTIME_SEC01_LENGTH 0x00000004
#define _ALRMTIME_SEC10_POSITION 0x0000000C
#define _ALRMTIME_SEC10_MASK 0x0000F000
#define _ALRMTIME_SEC10_LENGTH 0x00000004
#define _ALRMTIME_MIN01_POSITION 0x00000010
#define _ALRMTIME_MIN01_MASK 0x000F0000
#define _ALRMTIME_MIN01_LENGTH 0x00000004
#define _ALRMTIME_MIN10_POSITION 0x00000014
#define _ALRMTIME_MIN10_MASK 0x00F00000
#define _ALRMTIME_MIN10_LENGTH 0x00000004
#define _ALRMTIME_HR01_POSITION 0x00000018
#define _ALRMTIME_HR01_MASK 0x0F000000
#define _ALRMTIME_HR01_LENGTH 0x00000004
#define _ALRMTIME_HR10_POSITION 0x0000001C
#define _ALRMTIME_HR10_MASK 0xF0000000
#define _ALRMTIME_HR10_LENGTH 0x00000004
#define _ALRMTIME_w_POSITION 0x00000000
#define _ALRMTIME_w_MASK 0xFFFFFFFF
#define _ALRMTIME_w_LENGTH 0x00000020
#define _ALRMDATE_WDAY01_POSITION 0x00000000
#define _ALRMDATE_WDAY01_MASK 0x0000000F
#define _ALRMDATE_WDAY01_LENGTH 0x00000004
#define _ALRMDATE_DAY01_POSITION 0x00000008
#define _ALRMDATE_DAY01_MASK 0x00000F00
#define _ALRMDATE_DAY01_LENGTH 0x00000004
#define _ALRMDATE_DAY10_POSITION 0x0000000C
#define _ALRMDATE_DAY10_MASK 0x0000F000
#define _ALRMDATE_DAY10_LENGTH 0x00000004
#define _ALRMDATE_MONTH01_POSITION 0x00000010
#define _ALRMDATE_MONTH01_MASK 0x000F0000
#define _ALRMDATE_MONTH01_LENGTH 0x00000004
#define _ALRMDATE_MONTH10_POSITION 0x00000014
#define _ALRMDATE_MONTH10_MASK 0x00F00000
#define _ALRMDATE_MONTH10_LENGTH 0x00000004
#define _ALRMDATE_w_POSITION 0x00000000
#define _ALRMDATE_w_MASK 0xFFFFFFFF
#define _ALRMDATE_w_LENGTH 0x00000020
#define _T1CON_TCS_POSITION 0x00000001
#define _T1CON_TCS_MASK 0x00000002
#define _T1CON_TCS_LENGTH 0x00000001
#define _T1CON_TSYNC_POSITION 0x00000002
#define _T1CON_TSYNC_MASK 0x00000004
#define _T1CON_TSYNC_LENGTH 0x00000001
#define _T1CON_TCKPS_POSITION 0x00000004
#define _T1CON_TCKPS_MASK 0x00000030
#define _T1CON_TCKPS_LENGTH 0x00000002
#define _T1CON_TGATE_POSITION 0x00000007
#define _T1CON_TGATE_MASK 0x00000080
#define _T1CON_TGATE_LENGTH 0x00000001
#define _T1CON_TWIP_POSITION 0x0000000B
#define _T1CON_TWIP_MASK 0x00000800
#define _T1CON_TWIP_LENGTH 0x00000001
#define _T1CON_TWDIS_POSITION 0x0000000C
#define _T1CON_TWDIS_MASK 0x00001000
#define _T1CON_TWDIS_LENGTH 0x00000001
#define _T1CON_SIDL_POSITION 0x0000000D
#define _T1CON_SIDL_MASK 0x00002000
#define _T1CON_SIDL_LENGTH 0x00000001
#define _T1CON_ON_POSITION 0x0000000F
#define _T1CON_ON_MASK 0x00008000
#define _T1CON_ON_LENGTH 0x00000001
#define _T1CON_TCKPS0_POSITION 0x00000004
#define _T1CON_TCKPS0_MASK 0x00000010
#define _T1CON_TCKPS0_LENGTH 0x00000001
#define _T1CON_TCKPS1_POSITION 0x00000005
#define _T1CON_TCKPS1_MASK 0x00000020
#define _T1CON_TCKPS1_LENGTH 0x00000001
#define _T1CON_TSIDL_POSITION 0x0000000D
#define _T1CON_TSIDL_MASK 0x00002000
#define _T1CON_TSIDL_LENGTH 0x00000001
#define _T1CON_TON_POSITION 0x0000000F
#define _T1CON_TON_MASK 0x00008000
#define _T1CON_TON_LENGTH 0x00000001
#define _T1CON_w_POSITION 0x00000000
#define _T1CON_w_MASK 0xFFFFFFFF
#define _T1CON_w_LENGTH 0x00000020
#define _T2CON_TCS_POSITION 0x00000001
#define _T2CON_TCS_MASK 0x00000002
#define _T2CON_TCS_LENGTH 0x00000001
#define _T2CON_T32_POSITION 0x00000003
#define _T2CON_T32_MASK 0x00000008
#define _T2CON_T32_LENGTH 0x00000001
#define _T2CON_TCKPS_POSITION 0x00000004
#define _T2CON_TCKPS_MASK 0x00000070
#define _T2CON_TCKPS_LENGTH 0x00000003
#define _T2CON_TGATE_POSITION 0x00000007
#define _T2CON_TGATE_MASK 0x00000080
#define _T2CON_TGATE_LENGTH 0x00000001
#define _T2CON_SIDL_POSITION 0x0000000D
#define _T2CON_SIDL_MASK 0x00002000
#define _T2CON_SIDL_LENGTH 0x00000001
#define _T2CON_ON_POSITION 0x0000000F
#define _T2CON_ON_MASK 0x00008000
#define _T2CON_ON_LENGTH 0x00000001
#define _T2CON_TCKPS0_POSITION 0x00000004
#define _T2CON_TCKPS0_MASK 0x00000010
#define _T2CON_TCKPS0_LENGTH 0x00000001
#define _T2CON_TCKPS1_POSITION 0x00000005
#define _T2CON_TCKPS1_MASK 0x00000020
#define _T2CON_TCKPS1_LENGTH 0x00000001
#define _T2CON_TCKPS2_POSITION 0x00000006
#define _T2CON_TCKPS2_MASK 0x00000040
#define _T2CON_TCKPS2_LENGTH 0x00000001
#define _T2CON_TSIDL_POSITION 0x0000000D
#define _T2CON_TSIDL_MASK 0x00002000
#define _T2CON_TSIDL_LENGTH 0x00000001
#define _T2CON_TON_POSITION 0x0000000F
#define _T2CON_TON_MASK 0x00008000
#define _T2CON_TON_LENGTH 0x00000001
#define _T2CON_w_POSITION 0x00000000
#define _T2CON_w_MASK 0xFFFFFFFF
#define _T2CON_w_LENGTH 0x00000020
#define _T3CON_TCS_POSITION 0x00000001
#define _T3CON_TCS_MASK 0x00000002
#define _T3CON_TCS_LENGTH 0x00000001
#define _T3CON_TCKPS_POSITION 0x00000004
#define _T3CON_TCKPS_MASK 0x00000070
#define _T3CON_TCKPS_LENGTH 0x00000003
#define _T3CON_TGATE_POSITION 0x00000007
#define _T3CON_TGATE_MASK 0x00000080
#define _T3CON_TGATE_LENGTH 0x00000001
#define _T3CON_SIDL_POSITION 0x0000000D
#define _T3CON_SIDL_MASK 0x00002000
#define _T3CON_SIDL_LENGTH 0x00000001
#define _T3CON_ON_POSITION 0x0000000F
#define _T3CON_ON_MASK 0x00008000
#define _T3CON_ON_LENGTH 0x00000001
#define _T3CON_TCKPS0_POSITION 0x00000004
#define _T3CON_TCKPS0_MASK 0x00000010
#define _T3CON_TCKPS0_LENGTH 0x00000001
#define _T3CON_TCKPS1_POSITION 0x00000005
#define _T3CON_TCKPS1_MASK 0x00000020
#define _T3CON_TCKPS1_LENGTH 0x00000001
#define _T3CON_TCKPS2_POSITION 0x00000006
#define _T3CON_TCKPS2_MASK 0x00000040
#define _T3CON_TCKPS2_LENGTH 0x00000001
#define _T3CON_TSIDL_POSITION 0x0000000D
#define _T3CON_TSIDL_MASK 0x00002000
#define _T3CON_TSIDL_LENGTH 0x00000001
#define _T3CON_TON_POSITION 0x0000000F
#define _T3CON_TON_MASK 0x00008000
#define _T3CON_TON_LENGTH 0x00000001
#define _T3CON_w_POSITION 0x00000000
#define _T3CON_w_MASK 0xFFFFFFFF
#define _T3CON_w_LENGTH 0x00000020
#define _T4CON_TCS_POSITION 0x00000001
#define _T4CON_TCS_MASK 0x00000002
#define _T4CON_TCS_LENGTH 0x00000001
#define _T4CON_T32_POSITION 0x00000003
#define _T4CON_T32_MASK 0x00000008
#define _T4CON_T32_LENGTH 0x00000001
#define _T4CON_TCKPS_POSITION 0x00000004
#define _T4CON_TCKPS_MASK 0x00000070
#define _T4CON_TCKPS_LENGTH 0x00000003
#define _T4CON_TGATE_POSITION 0x00000007
#define _T4CON_TGATE_MASK 0x00000080
#define _T4CON_TGATE_LENGTH 0x00000001
#define _T4CON_SIDL_POSITION 0x0000000D
#define _T4CON_SIDL_MASK 0x00002000
#define _T4CON_SIDL_LENGTH 0x00000001
#define _T4CON_ON_POSITION 0x0000000F
#define _T4CON_ON_MASK 0x00008000
#define _T4CON_ON_LENGTH 0x00000001
#define _T4CON_TCKPS0_POSITION 0x00000004
#define _T4CON_TCKPS0_MASK 0x00000010
#define _T4CON_TCKPS0_LENGTH 0x00000001
#define _T4CON_TCKPS1_POSITION 0x00000005
#define _T4CON_TCKPS1_MASK 0x00000020
#define _T4CON_TCKPS1_LENGTH 0x00000001
#define _T4CON_TCKPS2_POSITION 0x00000006
#define _T4CON_TCKPS2_MASK 0x00000040
#define _T4CON_TCKPS2_LENGTH 0x00000001
#define _T4CON_TSIDL_POSITION 0x0000000D
#define _T4CON_TSIDL_MASK 0x00002000
#define _T4CON_TSIDL_LENGTH 0x00000001
#define _T4CON_TON_POSITION 0x0000000F
#define _T4CON_TON_MASK 0x00008000
#define _T4CON_TON_LENGTH 0x00000001
#define _T4CON_w_POSITION 0x00000000
#define _T4CON_w_MASK 0xFFFFFFFF
#define _T4CON_w_LENGTH 0x00000020
#define _T5CON_TCS_POSITION 0x00000001
#define _T5CON_TCS_MASK 0x00000002
#define _T5CON_TCS_LENGTH 0x00000001
#define _T5CON_TCKPS_POSITION 0x00000004
#define _T5CON_TCKPS_MASK 0x00000070
#define _T5CON_TCKPS_LENGTH 0x00000003
#define _T5CON_TGATE_POSITION 0x00000007
#define _T5CON_TGATE_MASK 0x00000080
#define _T5CON_TGATE_LENGTH 0x00000001
#define _T5CON_SIDL_POSITION 0x0000000D
#define _T5CON_SIDL_MASK 0x00002000
#define _T5CON_SIDL_LENGTH 0x00000001
#define _T5CON_ON_POSITION 0x0000000F
#define _T5CON_ON_MASK 0x00008000
#define _T5CON_ON_LENGTH 0x00000001
#define _T5CON_TCKPS0_POSITION 0x00000004
#define _T5CON_TCKPS0_MASK 0x00000010
#define _T5CON_TCKPS0_LENGTH 0x00000001
#define _T5CON_TCKPS1_POSITION 0x00000005
#define _T5CON_TCKPS1_MASK 0x00000020
#define _T5CON_TCKPS1_LENGTH 0x00000001
#define _T5CON_TCKPS2_POSITION 0x00000006
#define _T5CON_TCKPS2_MASK 0x00000040
#define _T5CON_TCKPS2_LENGTH 0x00000001
#define _T5CON_TSIDL_POSITION 0x0000000D
#define _T5CON_TSIDL_MASK 0x00002000
#define _T5CON_TSIDL_LENGTH 0x00000001
#define _T5CON_TON_POSITION 0x0000000F
#define _T5CON_TON_MASK 0x00008000
#define _T5CON_TON_LENGTH 0x00000001
#define _T5CON_w_POSITION 0x00000000
#define _T5CON_w_MASK 0xFFFFFFFF
#define _T5CON_w_LENGTH 0x00000020
#define _IC1CON_ICM_POSITION 0x00000000
#define _IC1CON_ICM_MASK 0x00000007
#define _IC1CON_ICM_LENGTH 0x00000003
#define _IC1CON_ICBNE_POSITION 0x00000003
#define _IC1CON_ICBNE_MASK 0x00000008
#define _IC1CON_ICBNE_LENGTH 0x00000001
#define _IC1CON_ICOV_POSITION 0x00000004
#define _IC1CON_ICOV_MASK 0x00000010
#define _IC1CON_ICOV_LENGTH 0x00000001
#define _IC1CON_ICI_POSITION 0x00000005
#define _IC1CON_ICI_MASK 0x00000060
#define _IC1CON_ICI_LENGTH 0x00000002
#define _IC1CON_ICTMR_POSITION 0x00000007
#define _IC1CON_ICTMR_MASK 0x00000080
#define _IC1CON_ICTMR_LENGTH 0x00000001
#define _IC1CON_C32_POSITION 0x00000008
#define _IC1CON_C32_MASK 0x00000100
#define _IC1CON_C32_LENGTH 0x00000001
#define _IC1CON_FEDGE_POSITION 0x00000009
#define _IC1CON_FEDGE_MASK 0x00000200
#define _IC1CON_FEDGE_LENGTH 0x00000001
#define _IC1CON_SIDL_POSITION 0x0000000D
#define _IC1CON_SIDL_MASK 0x00002000
#define _IC1CON_SIDL_LENGTH 0x00000001
#define _IC1CON_ON_POSITION 0x0000000F
#define _IC1CON_ON_MASK 0x00008000
#define _IC1CON_ON_LENGTH 0x00000001
#define _IC1CON_ICM0_POSITION 0x00000000
#define _IC1CON_ICM0_MASK 0x00000001
#define _IC1CON_ICM0_LENGTH 0x00000001
#define _IC1CON_ICM1_POSITION 0x00000001
#define _IC1CON_ICM1_MASK 0x00000002
#define _IC1CON_ICM1_LENGTH 0x00000001
#define _IC1CON_ICM2_POSITION 0x00000002
#define _IC1CON_ICM2_MASK 0x00000004
#define _IC1CON_ICM2_LENGTH 0x00000001
#define _IC1CON_ICI0_POSITION 0x00000005
#define _IC1CON_ICI0_MASK 0x00000020
#define _IC1CON_ICI0_LENGTH 0x00000001
#define _IC1CON_ICI1_POSITION 0x00000006
#define _IC1CON_ICI1_MASK 0x00000040
#define _IC1CON_ICI1_LENGTH 0x00000001
#define _IC1CON_ICSIDL_POSITION 0x0000000D
#define _IC1CON_ICSIDL_MASK 0x00002000
#define _IC1CON_ICSIDL_LENGTH 0x00000001
#define _IC1CON_w_POSITION 0x00000000
#define _IC1CON_w_MASK 0xFFFFFFFF
#define _IC1CON_w_LENGTH 0x00000020
#define _IC2CON_ICM_POSITION 0x00000000
#define _IC2CON_ICM_MASK 0x00000007
#define _IC2CON_ICM_LENGTH 0x00000003
#define _IC2CON_ICBNE_POSITION 0x00000003
#define _IC2CON_ICBNE_MASK 0x00000008
#define _IC2CON_ICBNE_LENGTH 0x00000001
#define _IC2CON_ICOV_POSITION 0x00000004
#define _IC2CON_ICOV_MASK 0x00000010
#define _IC2CON_ICOV_LENGTH 0x00000001
#define _IC2CON_ICI_POSITION 0x00000005
#define _IC2CON_ICI_MASK 0x00000060
#define _IC2CON_ICI_LENGTH 0x00000002
#define _IC2CON_ICTMR_POSITION 0x00000007
#define _IC2CON_ICTMR_MASK 0x00000080
#define _IC2CON_ICTMR_LENGTH 0x00000001
#define _IC2CON_C32_POSITION 0x00000008
#define _IC2CON_C32_MASK 0x00000100
#define _IC2CON_C32_LENGTH 0x00000001
#define _IC2CON_FEDGE_POSITION 0x00000009
#define _IC2CON_FEDGE_MASK 0x00000200
#define _IC2CON_FEDGE_LENGTH 0x00000001
#define _IC2CON_SIDL_POSITION 0x0000000D
#define _IC2CON_SIDL_MASK 0x00002000
#define _IC2CON_SIDL_LENGTH 0x00000001
#define _IC2CON_ON_POSITION 0x0000000F
#define _IC2CON_ON_MASK 0x00008000
#define _IC2CON_ON_LENGTH 0x00000001
#define _IC2CON_ICM0_POSITION 0x00000000
#define _IC2CON_ICM0_MASK 0x00000001
#define _IC2CON_ICM0_LENGTH 0x00000001
#define _IC2CON_ICM1_POSITION 0x00000001
#define _IC2CON_ICM1_MASK 0x00000002
#define _IC2CON_ICM1_LENGTH 0x00000001
#define _IC2CON_ICM2_POSITION 0x00000002
#define _IC2CON_ICM2_MASK 0x00000004
#define _IC2CON_ICM2_LENGTH 0x00000001
#define _IC2CON_ICI0_POSITION 0x00000005
#define _IC2CON_ICI0_MASK 0x00000020
#define _IC2CON_ICI0_LENGTH 0x00000001
#define _IC2CON_ICI1_POSITION 0x00000006
#define _IC2CON_ICI1_MASK 0x00000040
#define _IC2CON_ICI1_LENGTH 0x00000001
#define _IC2CON_ICSIDL_POSITION 0x0000000D
#define _IC2CON_ICSIDL_MASK 0x00002000
#define _IC2CON_ICSIDL_LENGTH 0x00000001
#define _IC2CON_w_POSITION 0x00000000
#define _IC2CON_w_MASK 0xFFFFFFFF
#define _IC2CON_w_LENGTH 0x00000020
#define _IC3CON_ICM_POSITION 0x00000000
#define _IC3CON_ICM_MASK 0x00000007
#define _IC3CON_ICM_LENGTH 0x00000003
#define _IC3CON_ICBNE_POSITION 0x00000003
#define _IC3CON_ICBNE_MASK 0x00000008
#define _IC3CON_ICBNE_LENGTH 0x00000001
#define _IC3CON_ICOV_POSITION 0x00000004
#define _IC3CON_ICOV_MASK 0x00000010
#define _IC3CON_ICOV_LENGTH 0x00000001
#define _IC3CON_ICI_POSITION 0x00000005
#define _IC3CON_ICI_MASK 0x00000060
#define _IC3CON_ICI_LENGTH 0x00000002
#define _IC3CON_ICTMR_POSITION 0x00000007
#define _IC3CON_ICTMR_MASK 0x00000080
#define _IC3CON_ICTMR_LENGTH 0x00000001
#define _IC3CON_C32_POSITION 0x00000008
#define _IC3CON_C32_MASK 0x00000100
#define _IC3CON_C32_LENGTH 0x00000001
#define _IC3CON_FEDGE_POSITION 0x00000009
#define _IC3CON_FEDGE_MASK 0x00000200
#define _IC3CON_FEDGE_LENGTH 0x00000001
#define _IC3CON_SIDL_POSITION 0x0000000D
#define _IC3CON_SIDL_MASK 0x00002000
#define _IC3CON_SIDL_LENGTH 0x00000001
#define _IC3CON_ON_POSITION 0x0000000F
#define _IC3CON_ON_MASK 0x00008000
#define _IC3CON_ON_LENGTH 0x00000001
#define _IC3CON_ICM0_POSITION 0x00000000
#define _IC3CON_ICM0_MASK 0x00000001
#define _IC3CON_ICM0_LENGTH 0x00000001
#define _IC3CON_ICM1_POSITION 0x00000001
#define _IC3CON_ICM1_MASK 0x00000002
#define _IC3CON_ICM1_LENGTH 0x00000001
#define _IC3CON_ICM2_POSITION 0x00000002
#define _IC3CON_ICM2_MASK 0x00000004
#define _IC3CON_ICM2_LENGTH 0x00000001
#define _IC3CON_ICI0_POSITION 0x00000005
#define _IC3CON_ICI0_MASK 0x00000020
#define _IC3CON_ICI0_LENGTH 0x00000001
#define _IC3CON_ICI1_POSITION 0x00000006
#define _IC3CON_ICI1_MASK 0x00000040
#define _IC3CON_ICI1_LENGTH 0x00000001
#define _IC3CON_ICSIDL_POSITION 0x0000000D
#define _IC3CON_ICSIDL_MASK 0x00002000
#define _IC3CON_ICSIDL_LENGTH 0x00000001
#define _IC3CON_w_POSITION 0x00000000
#define _IC3CON_w_MASK 0xFFFFFFFF
#define _IC3CON_w_LENGTH 0x00000020
#define _IC4CON_ICM_POSITION 0x00000000
#define _IC4CON_ICM_MASK 0x00000007
#define _IC4CON_ICM_LENGTH 0x00000003
#define _IC4CON_ICBNE_POSITION 0x00000003
#define _IC4CON_ICBNE_MASK 0x00000008
#define _IC4CON_ICBNE_LENGTH 0x00000001
#define _IC4CON_ICOV_POSITION 0x00000004
#define _IC4CON_ICOV_MASK 0x00000010
#define _IC4CON_ICOV_LENGTH 0x00000001
#define _IC4CON_ICI_POSITION 0x00000005
#define _IC4CON_ICI_MASK 0x00000060
#define _IC4CON_ICI_LENGTH 0x00000002
#define _IC4CON_ICTMR_POSITION 0x00000007
#define _IC4CON_ICTMR_MASK 0x00000080
#define _IC4CON_ICTMR_LENGTH 0x00000001
#define _IC4CON_C32_POSITION 0x00000008
#define _IC4CON_C32_MASK 0x00000100
#define _IC4CON_C32_LENGTH 0x00000001
#define _IC4CON_FEDGE_POSITION 0x00000009
#define _IC4CON_FEDGE_MASK 0x00000200
#define _IC4CON_FEDGE_LENGTH 0x00000001
#define _IC4CON_SIDL_POSITION 0x0000000D
#define _IC4CON_SIDL_MASK 0x00002000
#define _IC4CON_SIDL_LENGTH 0x00000001
#define _IC4CON_ON_POSITION 0x0000000F
#define _IC4CON_ON_MASK 0x00008000
#define _IC4CON_ON_LENGTH 0x00000001
#define _IC4CON_ICM0_POSITION 0x00000000
#define _IC4CON_ICM0_MASK 0x00000001
#define _IC4CON_ICM0_LENGTH 0x00000001
#define _IC4CON_ICM1_POSITION 0x00000001
#define _IC4CON_ICM1_MASK 0x00000002
#define _IC4CON_ICM1_LENGTH 0x00000001
#define _IC4CON_ICM2_POSITION 0x00000002
#define _IC4CON_ICM2_MASK 0x00000004
#define _IC4CON_ICM2_LENGTH 0x00000001
#define _IC4CON_ICI0_POSITION 0x00000005
#define _IC4CON_ICI0_MASK 0x00000020
#define _IC4CON_ICI0_LENGTH 0x00000001
#define _IC4CON_ICI1_POSITION 0x00000006
#define _IC4CON_ICI1_MASK 0x00000040
#define _IC4CON_ICI1_LENGTH 0x00000001
#define _IC4CON_ICSIDL_POSITION 0x0000000D
#define _IC4CON_ICSIDL_MASK 0x00002000
#define _IC4CON_ICSIDL_LENGTH 0x00000001
#define _IC4CON_w_POSITION 0x00000000
#define _IC4CON_w_MASK 0xFFFFFFFF
#define _IC4CON_w_LENGTH 0x00000020
#define _IC5CON_ICM_POSITION 0x00000000
#define _IC5CON_ICM_MASK 0x00000007
#define _IC5CON_ICM_LENGTH 0x00000003
#define _IC5CON_ICBNE_POSITION 0x00000003
#define _IC5CON_ICBNE_MASK 0x00000008
#define _IC5CON_ICBNE_LENGTH 0x00000001
#define _IC5CON_ICOV_POSITION 0x00000004
#define _IC5CON_ICOV_MASK 0x00000010
#define _IC5CON_ICOV_LENGTH 0x00000001
#define _IC5CON_ICI_POSITION 0x00000005
#define _IC5CON_ICI_MASK 0x00000060
#define _IC5CON_ICI_LENGTH 0x00000002
#define _IC5CON_ICTMR_POSITION 0x00000007
#define _IC5CON_ICTMR_MASK 0x00000080
#define _IC5CON_ICTMR_LENGTH 0x00000001
#define _IC5CON_C32_POSITION 0x00000008
#define _IC5CON_C32_MASK 0x00000100
#define _IC5CON_C32_LENGTH 0x00000001
#define _IC5CON_FEDGE_POSITION 0x00000009
#define _IC5CON_FEDGE_MASK 0x00000200
#define _IC5CON_FEDGE_LENGTH 0x00000001
#define _IC5CON_SIDL_POSITION 0x0000000D
#define _IC5CON_SIDL_MASK 0x00002000
#define _IC5CON_SIDL_LENGTH 0x00000001
#define _IC5CON_ON_POSITION 0x0000000F
#define _IC5CON_ON_MASK 0x00008000
#define _IC5CON_ON_LENGTH 0x00000001
#define _IC5CON_ICM0_POSITION 0x00000000
#define _IC5CON_ICM0_MASK 0x00000001
#define _IC5CON_ICM0_LENGTH 0x00000001
#define _IC5CON_ICM1_POSITION 0x00000001
#define _IC5CON_ICM1_MASK 0x00000002
#define _IC5CON_ICM1_LENGTH 0x00000001
#define _IC5CON_ICM2_POSITION 0x00000002
#define _IC5CON_ICM2_MASK 0x00000004
#define _IC5CON_ICM2_LENGTH 0x00000001
#define _IC5CON_ICI0_POSITION 0x00000005
#define _IC5CON_ICI0_MASK 0x00000020
#define _IC5CON_ICI0_LENGTH 0x00000001
#define _IC5CON_ICI1_POSITION 0x00000006
#define _IC5CON_ICI1_MASK 0x00000040
#define _IC5CON_ICI1_LENGTH 0x00000001
#define _IC5CON_ICSIDL_POSITION 0x0000000D
#define _IC5CON_ICSIDL_MASK 0x00002000
#define _IC5CON_ICSIDL_LENGTH 0x00000001
#define _IC5CON_w_POSITION 0x00000000
#define _IC5CON_w_MASK 0xFFFFFFFF
#define _IC5CON_w_LENGTH 0x00000020
#define _OC1CON_OCM_POSITION 0x00000000
#define _OC1CON_OCM_MASK 0x00000007
#define _OC1CON_OCM_LENGTH 0x00000003
#define _OC1CON_OCTSEL_POSITION 0x00000003
#define _OC1CON_OCTSEL_MASK 0x00000008
#define _OC1CON_OCTSEL_LENGTH 0x00000001
#define _OC1CON_OCFLT_POSITION 0x00000004
#define _OC1CON_OCFLT_MASK 0x00000010
#define _OC1CON_OCFLT_LENGTH 0x00000001
#define _OC1CON_OC32_POSITION 0x00000005
#define _OC1CON_OC32_MASK 0x00000020
#define _OC1CON_OC32_LENGTH 0x00000001
#define _OC1CON_SIDL_POSITION 0x0000000D
#define _OC1CON_SIDL_MASK 0x00002000
#define _OC1CON_SIDL_LENGTH 0x00000001
#define _OC1CON_ON_POSITION 0x0000000F
#define _OC1CON_ON_MASK 0x00008000
#define _OC1CON_ON_LENGTH 0x00000001
#define _OC1CON_OCM0_POSITION 0x00000000
#define _OC1CON_OCM0_MASK 0x00000001
#define _OC1CON_OCM0_LENGTH 0x00000001
#define _OC1CON_OCM1_POSITION 0x00000001
#define _OC1CON_OCM1_MASK 0x00000002
#define _OC1CON_OCM1_LENGTH 0x00000001
#define _OC1CON_OCM2_POSITION 0x00000002
#define _OC1CON_OCM2_MASK 0x00000004
#define _OC1CON_OCM2_LENGTH 0x00000001
#define _OC1CON_OCSIDL_POSITION 0x0000000D
#define _OC1CON_OCSIDL_MASK 0x00002000
#define _OC1CON_OCSIDL_LENGTH 0x00000001
#define _OC1CON_w_POSITION 0x00000000
#define _OC1CON_w_MASK 0xFFFFFFFF
#define _OC1CON_w_LENGTH 0x00000020
#define _OC2CON_OCM_POSITION 0x00000000
#define _OC2CON_OCM_MASK 0x00000007
#define _OC2CON_OCM_LENGTH 0x00000003
#define _OC2CON_OCTSEL_POSITION 0x00000003
#define _OC2CON_OCTSEL_MASK 0x00000008
#define _OC2CON_OCTSEL_LENGTH 0x00000001
#define _OC2CON_OCFLT_POSITION 0x00000004
#define _OC2CON_OCFLT_MASK 0x00000010
#define _OC2CON_OCFLT_LENGTH 0x00000001
#define _OC2CON_OC32_POSITION 0x00000005
#define _OC2CON_OC32_MASK 0x00000020
#define _OC2CON_OC32_LENGTH 0x00000001
#define _OC2CON_SIDL_POSITION 0x0000000D
#define _OC2CON_SIDL_MASK 0x00002000
#define _OC2CON_SIDL_LENGTH 0x00000001
#define _OC2CON_ON_POSITION 0x0000000F
#define _OC2CON_ON_MASK 0x00008000
#define _OC2CON_ON_LENGTH 0x00000001
#define _OC2CON_OCM0_POSITION 0x00000000
#define _OC2CON_OCM0_MASK 0x00000001
#define _OC2CON_OCM0_LENGTH 0x00000001
#define _OC2CON_OCM1_POSITION 0x00000001
#define _OC2CON_OCM1_MASK 0x00000002
#define _OC2CON_OCM1_LENGTH 0x00000001
#define _OC2CON_OCM2_POSITION 0x00000002
#define _OC2CON_OCM2_MASK 0x00000004
#define _OC2CON_OCM2_LENGTH 0x00000001
#define _OC2CON_OCSIDL_POSITION 0x0000000D
#define _OC2CON_OCSIDL_MASK 0x00002000
#define _OC2CON_OCSIDL_LENGTH 0x00000001
#define _OC2CON_w_POSITION 0x00000000
#define _OC2CON_w_MASK 0xFFFFFFFF
#define _OC2CON_w_LENGTH 0x00000020
#define _OC3CON_OCM_POSITION 0x00000000
#define _OC3CON_OCM_MASK 0x00000007
#define _OC3CON_OCM_LENGTH 0x00000003
#define _OC3CON_OCTSEL_POSITION 0x00000003
#define _OC3CON_OCTSEL_MASK 0x00000008
#define _OC3CON_OCTSEL_LENGTH 0x00000001
#define _OC3CON_OCFLT_POSITION 0x00000004
#define _OC3CON_OCFLT_MASK 0x00000010
#define _OC3CON_OCFLT_LENGTH 0x00000001
#define _OC3CON_OC32_POSITION 0x00000005
#define _OC3CON_OC32_MASK 0x00000020
#define _OC3CON_OC32_LENGTH 0x00000001
#define _OC3CON_SIDL_POSITION 0x0000000D
#define _OC3CON_SIDL_MASK 0x00002000
#define _OC3CON_SIDL_LENGTH 0x00000001
#define _OC3CON_ON_POSITION 0x0000000F
#define _OC3CON_ON_MASK 0x00008000
#define _OC3CON_ON_LENGTH 0x00000001
#define _OC3CON_OCM0_POSITION 0x00000000
#define _OC3CON_OCM0_MASK 0x00000001
#define _OC3CON_OCM0_LENGTH 0x00000001
#define _OC3CON_OCM1_POSITION 0x00000001
#define _OC3CON_OCM1_MASK 0x00000002
#define _OC3CON_OCM1_LENGTH 0x00000001
#define _OC3CON_OCM2_POSITION 0x00000002
#define _OC3CON_OCM2_MASK 0x00000004
#define _OC3CON_OCM2_LENGTH 0x00000001
#define _OC3CON_OCSIDL_POSITION 0x0000000D
#define _OC3CON_OCSIDL_MASK 0x00002000
#define _OC3CON_OCSIDL_LENGTH 0x00000001
#define _OC3CON_w_POSITION 0x00000000
#define _OC3CON_w_MASK 0xFFFFFFFF
#define _OC3CON_w_LENGTH 0x00000020
#define _OC4CON_OCM_POSITION 0x00000000
#define _OC4CON_OCM_MASK 0x00000007
#define _OC4CON_OCM_LENGTH 0x00000003
#define _OC4CON_OCTSEL_POSITION 0x00000003
#define _OC4CON_OCTSEL_MASK 0x00000008
#define _OC4CON_OCTSEL_LENGTH 0x00000001
#define _OC4CON_OCFLT_POSITION 0x00000004
#define _OC4CON_OCFLT_MASK 0x00000010
#define _OC4CON_OCFLT_LENGTH 0x00000001
#define _OC4CON_OC32_POSITION 0x00000005
#define _OC4CON_OC32_MASK 0x00000020
#define _OC4CON_OC32_LENGTH 0x00000001
#define _OC4CON_SIDL_POSITION 0x0000000D
#define _OC4CON_SIDL_MASK 0x00002000
#define _OC4CON_SIDL_LENGTH 0x00000001
#define _OC4CON_ON_POSITION 0x0000000F
#define _OC4CON_ON_MASK 0x00008000
#define _OC4CON_ON_LENGTH 0x00000001
#define _OC4CON_OCM0_POSITION 0x00000000
#define _OC4CON_OCM0_MASK 0x00000001
#define _OC4CON_OCM0_LENGTH 0x00000001
#define _OC4CON_OCM1_POSITION 0x00000001
#define _OC4CON_OCM1_MASK 0x00000002
#define _OC4CON_OCM1_LENGTH 0x00000001
#define _OC4CON_OCM2_POSITION 0x00000002
#define _OC4CON_OCM2_MASK 0x00000004
#define _OC4CON_OCM2_LENGTH 0x00000001
#define _OC4CON_OCSIDL_POSITION 0x0000000D
#define _OC4CON_OCSIDL_MASK 0x00002000
#define _OC4CON_OCSIDL_LENGTH 0x00000001
#define _OC4CON_w_POSITION 0x00000000
#define _OC4CON_w_MASK 0xFFFFFFFF
#define _OC4CON_w_LENGTH 0x00000020
#define _OC5CON_OCM_POSITION 0x00000000
#define _OC5CON_OCM_MASK 0x00000007
#define _OC5CON_OCM_LENGTH 0x00000003
#define _OC5CON_OCTSEL_POSITION 0x00000003
#define _OC5CON_OCTSEL_MASK 0x00000008
#define _OC5CON_OCTSEL_LENGTH 0x00000001
#define _OC5CON_OCFLT_POSITION 0x00000004
#define _OC5CON_OCFLT_MASK 0x00000010
#define _OC5CON_OCFLT_LENGTH 0x00000001
#define _OC5CON_OC32_POSITION 0x00000005
#define _OC5CON_OC32_MASK 0x00000020
#define _OC5CON_OC32_LENGTH 0x00000001
#define _OC5CON_SIDL_POSITION 0x0000000D
#define _OC5CON_SIDL_MASK 0x00002000
#define _OC5CON_SIDL_LENGTH 0x00000001
#define _OC5CON_ON_POSITION 0x0000000F
#define _OC5CON_ON_MASK 0x00008000
#define _OC5CON_ON_LENGTH 0x00000001
#define _OC5CON_OCM0_POSITION 0x00000000
#define _OC5CON_OCM0_MASK 0x00000001
#define _OC5CON_OCM0_LENGTH 0x00000001
#define _OC5CON_OCM1_POSITION 0x00000001
#define _OC5CON_OCM1_MASK 0x00000002
#define _OC5CON_OCM1_LENGTH 0x00000001
#define _OC5CON_OCM2_POSITION 0x00000002
#define _OC5CON_OCM2_MASK 0x00000004
#define _OC5CON_OCM2_LENGTH 0x00000001
#define _OC5CON_OCSIDL_POSITION 0x0000000D
#define _OC5CON_OCSIDL_MASK 0x00002000
#define _OC5CON_OCSIDL_LENGTH 0x00000001
#define _OC5CON_w_POSITION 0x00000000
#define _OC5CON_w_MASK 0xFFFFFFFF
#define _OC5CON_w_LENGTH 0x00000020
#define _I2C1CON_SEN_POSITION 0x00000000
#define _I2C1CON_SEN_MASK 0x00000001
#define _I2C1CON_SEN_LENGTH 0x00000001
#define _I2C1CON_RSEN_POSITION 0x00000001
#define _I2C1CON_RSEN_MASK 0x00000002
#define _I2C1CON_RSEN_LENGTH 0x00000001
#define _I2C1CON_PEN_POSITION 0x00000002
#define _I2C1CON_PEN_MASK 0x00000004
#define _I2C1CON_PEN_LENGTH 0x00000001
#define _I2C1CON_RCEN_POSITION 0x00000003
#define _I2C1CON_RCEN_MASK 0x00000008
#define _I2C1CON_RCEN_LENGTH 0x00000001
#define _I2C1CON_ACKEN_POSITION 0x00000004
#define _I2C1CON_ACKEN_MASK 0x00000010
#define _I2C1CON_ACKEN_LENGTH 0x00000001
#define _I2C1CON_ACKDT_POSITION 0x00000005
#define _I2C1CON_ACKDT_MASK 0x00000020
#define _I2C1CON_ACKDT_LENGTH 0x00000001
#define _I2C1CON_STREN_POSITION 0x00000006
#define _I2C1CON_STREN_MASK 0x00000040
#define _I2C1CON_STREN_LENGTH 0x00000001
#define _I2C1CON_GCEN_POSITION 0x00000007
#define _I2C1CON_GCEN_MASK 0x00000080
#define _I2C1CON_GCEN_LENGTH 0x00000001
#define _I2C1CON_SMEN_POSITION 0x00000008
#define _I2C1CON_SMEN_MASK 0x00000100
#define _I2C1CON_SMEN_LENGTH 0x00000001
#define _I2C1CON_DISSLW_POSITION 0x00000009
#define _I2C1CON_DISSLW_MASK 0x00000200
#define _I2C1CON_DISSLW_LENGTH 0x00000001
#define _I2C1CON_A10M_POSITION 0x0000000A
#define _I2C1CON_A10M_MASK 0x00000400
#define _I2C1CON_A10M_LENGTH 0x00000001
#define _I2C1CON_STRICT_POSITION 0x0000000B
#define _I2C1CON_STRICT_MASK 0x00000800
#define _I2C1CON_STRICT_LENGTH 0x00000001
#define _I2C1CON_SCLREL_POSITION 0x0000000C
#define _I2C1CON_SCLREL_MASK 0x00001000
#define _I2C1CON_SCLREL_LENGTH 0x00000001
#define _I2C1CON_SIDL_POSITION 0x0000000D
#define _I2C1CON_SIDL_MASK 0x00002000
#define _I2C1CON_SIDL_LENGTH 0x00000001
#define _I2C1CON_ON_POSITION 0x0000000F
#define _I2C1CON_ON_MASK 0x00008000
#define _I2C1CON_ON_LENGTH 0x00000001
#define _I2C1CON_IPMIEN_POSITION 0x0000000B
#define _I2C1CON_IPMIEN_MASK 0x00000800
#define _I2C1CON_IPMIEN_LENGTH 0x00000001
#define _I2C1CON_I2CSIDL_POSITION 0x0000000D
#define _I2C1CON_I2CSIDL_MASK 0x00002000
#define _I2C1CON_I2CSIDL_LENGTH 0x00000001
#define _I2C1CON_I2CEN_POSITION 0x0000000F
#define _I2C1CON_I2CEN_MASK 0x00008000
#define _I2C1CON_I2CEN_LENGTH 0x00000001
#define _I2C1CON_w_POSITION 0x00000000
#define _I2C1CON_w_MASK 0xFFFFFFFF
#define _I2C1CON_w_LENGTH 0x00000020
#define _I2C1STAT_TBF_POSITION 0x00000000
#define _I2C1STAT_TBF_MASK 0x00000001
#define _I2C1STAT_TBF_LENGTH 0x00000001
#define _I2C1STAT_RBF_POSITION 0x00000001
#define _I2C1STAT_RBF_MASK 0x00000002
#define _I2C1STAT_RBF_LENGTH 0x00000001
#define _I2C1STAT_R_W_POSITION 0x00000002
#define _I2C1STAT_R_W_MASK 0x00000004
#define _I2C1STAT_R_W_LENGTH 0x00000001
#define _I2C1STAT_S_POSITION 0x00000003
#define _I2C1STAT_S_MASK 0x00000008
#define _I2C1STAT_S_LENGTH 0x00000001
#define _I2C1STAT_P_POSITION 0x00000004
#define _I2C1STAT_P_MASK 0x00000010
#define _I2C1STAT_P_LENGTH 0x00000001
#define _I2C1STAT_D_A_POSITION 0x00000005
#define _I2C1STAT_D_A_MASK 0x00000020
#define _I2C1STAT_D_A_LENGTH 0x00000001
#define _I2C1STAT_I2COV_POSITION 0x00000006
#define _I2C1STAT_I2COV_MASK 0x00000040
#define _I2C1STAT_I2COV_LENGTH 0x00000001
#define _I2C1STAT_IWCOL_POSITION 0x00000007
#define _I2C1STAT_IWCOL_MASK 0x00000080
#define _I2C1STAT_IWCOL_LENGTH 0x00000001
#define _I2C1STAT_ADD10_POSITION 0x00000008
#define _I2C1STAT_ADD10_MASK 0x00000100
#define _I2C1STAT_ADD10_LENGTH 0x00000001
#define _I2C1STAT_GCSTAT_POSITION 0x00000009
#define _I2C1STAT_GCSTAT_MASK 0x00000200
#define _I2C1STAT_GCSTAT_LENGTH 0x00000001
#define _I2C1STAT_BCL_POSITION 0x0000000A
#define _I2C1STAT_BCL_MASK 0x00000400
#define _I2C1STAT_BCL_LENGTH 0x00000001
#define _I2C1STAT_TRSTAT_POSITION 0x0000000E
#define _I2C1STAT_TRSTAT_MASK 0x00004000
#define _I2C1STAT_TRSTAT_LENGTH 0x00000001
#define _I2C1STAT_ACKSTAT_POSITION 0x0000000F
#define _I2C1STAT_ACKSTAT_MASK 0x00008000
#define _I2C1STAT_ACKSTAT_LENGTH 0x00000001
#define _I2C1STAT_I2CPOV_POSITION 0x00000006
#define _I2C1STAT_I2CPOV_MASK 0x00000040
#define _I2C1STAT_I2CPOV_LENGTH 0x00000001
#define _I2C1STAT_w_POSITION 0x00000000
#define _I2C1STAT_w_MASK 0xFFFFFFFF
#define _I2C1STAT_w_LENGTH 0x00000020
#define _I2C2CON_SEN_POSITION 0x00000000
#define _I2C2CON_SEN_MASK 0x00000001
#define _I2C2CON_SEN_LENGTH 0x00000001
#define _I2C2CON_RSEN_POSITION 0x00000001
#define _I2C2CON_RSEN_MASK 0x00000002
#define _I2C2CON_RSEN_LENGTH 0x00000001
#define _I2C2CON_PEN_POSITION 0x00000002
#define _I2C2CON_PEN_MASK 0x00000004
#define _I2C2CON_PEN_LENGTH 0x00000001
#define _I2C2CON_RCEN_POSITION 0x00000003
#define _I2C2CON_RCEN_MASK 0x00000008
#define _I2C2CON_RCEN_LENGTH 0x00000001
#define _I2C2CON_ACKEN_POSITION 0x00000004
#define _I2C2CON_ACKEN_MASK 0x00000010
#define _I2C2CON_ACKEN_LENGTH 0x00000001
#define _I2C2CON_ACKDT_POSITION 0x00000005
#define _I2C2CON_ACKDT_MASK 0x00000020
#define _I2C2CON_ACKDT_LENGTH 0x00000001
#define _I2C2CON_STREN_POSITION 0x00000006
#define _I2C2CON_STREN_MASK 0x00000040
#define _I2C2CON_STREN_LENGTH 0x00000001
#define _I2C2CON_GCEN_POSITION 0x00000007
#define _I2C2CON_GCEN_MASK 0x00000080
#define _I2C2CON_GCEN_LENGTH 0x00000001
#define _I2C2CON_SMEN_POSITION 0x00000008
#define _I2C2CON_SMEN_MASK 0x00000100
#define _I2C2CON_SMEN_LENGTH 0x00000001
#define _I2C2CON_DISSLW_POSITION 0x00000009
#define _I2C2CON_DISSLW_MASK 0x00000200
#define _I2C2CON_DISSLW_LENGTH 0x00000001
#define _I2C2CON_A10M_POSITION 0x0000000A
#define _I2C2CON_A10M_MASK 0x00000400
#define _I2C2CON_A10M_LENGTH 0x00000001
#define _I2C2CON_STRICT_POSITION 0x0000000B
#define _I2C2CON_STRICT_MASK 0x00000800
#define _I2C2CON_STRICT_LENGTH 0x00000001
#define _I2C2CON_SCLREL_POSITION 0x0000000C
#define _I2C2CON_SCLREL_MASK 0x00001000
#define _I2C2CON_SCLREL_LENGTH 0x00000001
#define _I2C2CON_SIDL_POSITION 0x0000000D
#define _I2C2CON_SIDL_MASK 0x00002000
#define _I2C2CON_SIDL_LENGTH 0x00000001
#define _I2C2CON_ON_POSITION 0x0000000F
#define _I2C2CON_ON_MASK 0x00008000
#define _I2C2CON_ON_LENGTH 0x00000001
#define _I2C2CON_IPMIEN_POSITION 0x0000000B
#define _I2C2CON_IPMIEN_MASK 0x00000800
#define _I2C2CON_IPMIEN_LENGTH 0x00000001
#define _I2C2CON_I2CSIDL_POSITION 0x0000000D
#define _I2C2CON_I2CSIDL_MASK 0x00002000
#define _I2C2CON_I2CSIDL_LENGTH 0x00000001
#define _I2C2CON_I2CEN_POSITION 0x0000000F
#define _I2C2CON_I2CEN_MASK 0x00008000
#define _I2C2CON_I2CEN_LENGTH 0x00000001
#define _I2C2CON_w_POSITION 0x00000000
#define _I2C2CON_w_MASK 0xFFFFFFFF
#define _I2C2CON_w_LENGTH 0x00000020
#define _I2C2STAT_TBF_POSITION 0x00000000
#define _I2C2STAT_TBF_MASK 0x00000001
#define _I2C2STAT_TBF_LENGTH 0x00000001
#define _I2C2STAT_RBF_POSITION 0x00000001
#define _I2C2STAT_RBF_MASK 0x00000002
#define _I2C2STAT_RBF_LENGTH 0x00000001
#define _I2C2STAT_R_W_POSITION 0x00000002
#define _I2C2STAT_R_W_MASK 0x00000004
#define _I2C2STAT_R_W_LENGTH 0x00000001
#define _I2C2STAT_S_POSITION 0x00000003
#define _I2C2STAT_S_MASK 0x00000008
#define _I2C2STAT_S_LENGTH 0x00000001
#define _I2C2STAT_P_POSITION 0x00000004
#define _I2C2STAT_P_MASK 0x00000010
#define _I2C2STAT_P_LENGTH 0x00000001
#define _I2C2STAT_D_A_POSITION 0x00000005
#define _I2C2STAT_D_A_MASK 0x00000020
#define _I2C2STAT_D_A_LENGTH 0x00000001
#define _I2C2STAT_I2COV_POSITION 0x00000006
#define _I2C2STAT_I2COV_MASK 0x00000040
#define _I2C2STAT_I2COV_LENGTH 0x00000001
#define _I2C2STAT_IWCOL_POSITION 0x00000007
#define _I2C2STAT_IWCOL_MASK 0x00000080
#define _I2C2STAT_IWCOL_LENGTH 0x00000001
#define _I2C2STAT_ADD10_POSITION 0x00000008
#define _I2C2STAT_ADD10_MASK 0x00000100
#define _I2C2STAT_ADD10_LENGTH 0x00000001
#define _I2C2STAT_GCSTAT_POSITION 0x00000009
#define _I2C2STAT_GCSTAT_MASK 0x00000200
#define _I2C2STAT_GCSTAT_LENGTH 0x00000001
#define _I2C2STAT_BCL_POSITION 0x0000000A
#define _I2C2STAT_BCL_MASK 0x00000400
#define _I2C2STAT_BCL_LENGTH 0x00000001
#define _I2C2STAT_TRSTAT_POSITION 0x0000000E
#define _I2C2STAT_TRSTAT_MASK 0x00004000
#define _I2C2STAT_TRSTAT_LENGTH 0x00000001
#define _I2C2STAT_ACKSTAT_POSITION 0x0000000F
#define _I2C2STAT_ACKSTAT_MASK 0x00008000
#define _I2C2STAT_ACKSTAT_LENGTH 0x00000001
#define _I2C2STAT_I2CPOV_POSITION 0x00000006
#define _I2C2STAT_I2CPOV_MASK 0x00000040
#define _I2C2STAT_I2CPOV_LENGTH 0x00000001
#define _I2C2STAT_w_POSITION 0x00000000
#define _I2C2STAT_w_MASK 0xFFFFFFFF
#define _I2C2STAT_w_LENGTH 0x00000020
#define _SPI1CON_MSTEN_POSITION 0x00000005
#define _SPI1CON_MSTEN_MASK 0x00000020
#define _SPI1CON_MSTEN_LENGTH 0x00000001
#define _SPI1CON_CKP_POSITION 0x00000006
#define _SPI1CON_CKP_MASK 0x00000040
#define _SPI1CON_CKP_LENGTH 0x00000001
#define _SPI1CON_SSEN_POSITION 0x00000007
#define _SPI1CON_SSEN_MASK 0x00000080
#define _SPI1CON_SSEN_LENGTH 0x00000001
#define _SPI1CON_CKE_POSITION 0x00000008
#define _SPI1CON_CKE_MASK 0x00000100
#define _SPI1CON_CKE_LENGTH 0x00000001
#define _SPI1CON_SMP_POSITION 0x00000009
#define _SPI1CON_SMP_MASK 0x00000200
#define _SPI1CON_SMP_LENGTH 0x00000001
#define _SPI1CON_MODE16_POSITION 0x0000000A
#define _SPI1CON_MODE16_MASK 0x00000400
#define _SPI1CON_MODE16_LENGTH 0x00000001
#define _SPI1CON_MODE32_POSITION 0x0000000B
#define _SPI1CON_MODE32_MASK 0x00000800
#define _SPI1CON_MODE32_LENGTH 0x00000001
#define _SPI1CON_DISSDO_POSITION 0x0000000C
#define _SPI1CON_DISSDO_MASK 0x00001000
#define _SPI1CON_DISSDO_LENGTH 0x00000001
#define _SPI1CON_SIDL_POSITION 0x0000000D
#define _SPI1CON_SIDL_MASK 0x00002000
#define _SPI1CON_SIDL_LENGTH 0x00000001
#define _SPI1CON_ON_POSITION 0x0000000F
#define _SPI1CON_ON_MASK 0x00008000
#define _SPI1CON_ON_LENGTH 0x00000001
#define _SPI1CON_SPIFE_POSITION 0x00000011
#define _SPI1CON_SPIFE_MASK 0x00020000
#define _SPI1CON_SPIFE_LENGTH 0x00000001
#define _SPI1CON_FRMPOL_POSITION 0x0000001D
#define _SPI1CON_FRMPOL_MASK 0x20000000
#define _SPI1CON_FRMPOL_LENGTH 0x00000001
#define _SPI1CON_FRMSYNC_POSITION 0x0000001E
#define _SPI1CON_FRMSYNC_MASK 0x40000000
#define _SPI1CON_FRMSYNC_LENGTH 0x00000001
#define _SPI1CON_FRMEN_POSITION 0x0000001F
#define _SPI1CON_FRMEN_MASK 0x80000000
#define _SPI1CON_FRMEN_LENGTH 0x00000001
#define _SPI1CON_w_POSITION 0x00000000
#define _SPI1CON_w_MASK 0xFFFFFFFF
#define _SPI1CON_w_LENGTH 0x00000020
#define _SPI1STAT_SPIRBF_POSITION 0x00000000
#define _SPI1STAT_SPIRBF_MASK 0x00000001
#define _SPI1STAT_SPIRBF_LENGTH 0x00000001
#define _SPI1STAT_SPITBE_POSITION 0x00000003
#define _SPI1STAT_SPITBE_MASK 0x00000008
#define _SPI1STAT_SPITBE_LENGTH 0x00000001
#define _SPI1STAT_SPIROV_POSITION 0x00000006
#define _SPI1STAT_SPIROV_MASK 0x00000040
#define _SPI1STAT_SPIROV_LENGTH 0x00000001
#define _SPI1STAT_SPIBUSY_POSITION 0x0000000B
#define _SPI1STAT_SPIBUSY_MASK 0x00000800
#define _SPI1STAT_SPIBUSY_LENGTH 0x00000001
#define _SPI1STAT_w_POSITION 0x00000000
#define _SPI1STAT_w_MASK 0xFFFFFFFF
#define _SPI1STAT_w_LENGTH 0x00000020
#define _SPI2CON_MSTEN_POSITION 0x00000005
#define _SPI2CON_MSTEN_MASK 0x00000020
#define _SPI2CON_MSTEN_LENGTH 0x00000001
#define _SPI2CON_CKP_POSITION 0x00000006
#define _SPI2CON_CKP_MASK 0x00000040
#define _SPI2CON_CKP_LENGTH 0x00000001
#define _SPI2CON_SSEN_POSITION 0x00000007
#define _SPI2CON_SSEN_MASK 0x00000080
#define _SPI2CON_SSEN_LENGTH 0x00000001
#define _SPI2CON_CKE_POSITION 0x00000008
#define _SPI2CON_CKE_MASK 0x00000100
#define _SPI2CON_CKE_LENGTH 0x00000001
#define _SPI2CON_SMP_POSITION 0x00000009
#define _SPI2CON_SMP_MASK 0x00000200
#define _SPI2CON_SMP_LENGTH 0x00000001
#define _SPI2CON_MODE16_POSITION 0x0000000A
#define _SPI2CON_MODE16_MASK 0x00000400
#define _SPI2CON_MODE16_LENGTH 0x00000001
#define _SPI2CON_MODE32_POSITION 0x0000000B
#define _SPI2CON_MODE32_MASK 0x00000800
#define _SPI2CON_MODE32_LENGTH 0x00000001
#define _SPI2CON_DISSDO_POSITION 0x0000000C
#define _SPI2CON_DISSDO_MASK 0x00001000
#define _SPI2CON_DISSDO_LENGTH 0x00000001
#define _SPI2CON_SIDL_POSITION 0x0000000D
#define _SPI2CON_SIDL_MASK 0x00002000
#define _SPI2CON_SIDL_LENGTH 0x00000001
#define _SPI2CON_ON_POSITION 0x0000000F
#define _SPI2CON_ON_MASK 0x00008000
#define _SPI2CON_ON_LENGTH 0x00000001
#define _SPI2CON_SPIFE_POSITION 0x00000011
#define _SPI2CON_SPIFE_MASK 0x00020000
#define _SPI2CON_SPIFE_LENGTH 0x00000001
#define _SPI2CON_FRMPOL_POSITION 0x0000001D
#define _SPI2CON_FRMPOL_MASK 0x20000000
#define _SPI2CON_FRMPOL_LENGTH 0x00000001
#define _SPI2CON_FRMSYNC_POSITION 0x0000001E
#define _SPI2CON_FRMSYNC_MASK 0x40000000
#define _SPI2CON_FRMSYNC_LENGTH 0x00000001
#define _SPI2CON_FRMEN_POSITION 0x0000001F
#define _SPI2CON_FRMEN_MASK 0x80000000
#define _SPI2CON_FRMEN_LENGTH 0x00000001
#define _SPI2CON_w_POSITION 0x00000000
#define _SPI2CON_w_MASK 0xFFFFFFFF
#define _SPI2CON_w_LENGTH 0x00000020
#define _SPI2STAT_SPIRBF_POSITION 0x00000000
#define _SPI2STAT_SPIRBF_MASK 0x00000001
#define _SPI2STAT_SPIRBF_LENGTH 0x00000001
#define _SPI2STAT_SPITBE_POSITION 0x00000003
#define _SPI2STAT_SPITBE_MASK 0x00000008
#define _SPI2STAT_SPITBE_LENGTH 0x00000001
#define _SPI2STAT_SPIROV_POSITION 0x00000006
#define _SPI2STAT_SPIROV_MASK 0x00000040
#define _SPI2STAT_SPIROV_LENGTH 0x00000001
#define _SPI2STAT_SPIBUSY_POSITION 0x0000000B
#define _SPI2STAT_SPIBUSY_MASK 0x00000800
#define _SPI2STAT_SPIBUSY_LENGTH 0x00000001
#define _SPI2STAT_w_POSITION 0x00000000
#define _SPI2STAT_w_MASK 0xFFFFFFFF
#define _SPI2STAT_w_LENGTH 0x00000020
#define _U1MODE_STSEL_POSITION 0x00000000
#define _U1MODE_STSEL_MASK 0x00000001
#define _U1MODE_STSEL_LENGTH 0x00000001
#define _U1MODE_PDSEL_POSITION 0x00000001
#define _U1MODE_PDSEL_MASK 0x00000006
#define _U1MODE_PDSEL_LENGTH 0x00000002
#define _U1MODE_BRGH_POSITION 0x00000003
#define _U1MODE_BRGH_MASK 0x00000008
#define _U1MODE_BRGH_LENGTH 0x00000001
#define _U1MODE_RXINV_POSITION 0x00000004
#define _U1MODE_RXINV_MASK 0x00000010
#define _U1MODE_RXINV_LENGTH 0x00000001
#define _U1MODE_ABAUD_POSITION 0x00000005
#define _U1MODE_ABAUD_MASK 0x00000020
#define _U1MODE_ABAUD_LENGTH 0x00000001
#define _U1MODE_LPBACK_POSITION 0x00000006
#define _U1MODE_LPBACK_MASK 0x00000040
#define _U1MODE_LPBACK_LENGTH 0x00000001
#define _U1MODE_WAKE_POSITION 0x00000007
#define _U1MODE_WAKE_MASK 0x00000080
#define _U1MODE_WAKE_LENGTH 0x00000001
#define _U1MODE_UEN_POSITION 0x00000008
#define _U1MODE_UEN_MASK 0x00000300
#define _U1MODE_UEN_LENGTH 0x00000002
#define _U1MODE_RTSMD_POSITION 0x0000000B
#define _U1MODE_RTSMD_MASK 0x00000800
#define _U1MODE_RTSMD_LENGTH 0x00000001
#define _U1MODE_IREN_POSITION 0x0000000C
#define _U1MODE_IREN_MASK 0x00001000
#define _U1MODE_IREN_LENGTH 0x00000001
#define _U1MODE_SIDL_POSITION 0x0000000D
#define _U1MODE_SIDL_MASK 0x00002000
#define _U1MODE_SIDL_LENGTH 0x00000001
#define _U1MODE_ON_POSITION 0x0000000F
#define _U1MODE_ON_MASK 0x00008000
#define _U1MODE_ON_LENGTH 0x00000001
#define _U1MODE_PDSEL0_POSITION 0x00000001
#define _U1MODE_PDSEL0_MASK 0x00000002
#define _U1MODE_PDSEL0_LENGTH 0x00000001
#define _U1MODE_PDSEL1_POSITION 0x00000002
#define _U1MODE_PDSEL1_MASK 0x00000004
#define _U1MODE_PDSEL1_LENGTH 0x00000001
#define _U1MODE_UEN0_POSITION 0x00000008
#define _U1MODE_UEN0_MASK 0x00000100
#define _U1MODE_UEN0_LENGTH 0x00000001
#define _U1MODE_UEN1_POSITION 0x00000009
#define _U1MODE_UEN1_MASK 0x00000200
#define _U1MODE_UEN1_LENGTH 0x00000001
#define _U1MODE_USIDL_POSITION 0x0000000D
#define _U1MODE_USIDL_MASK 0x00002000
#define _U1MODE_USIDL_LENGTH 0x00000001
#define _U1MODE_UARTEN_POSITION 0x0000000F
#define _U1MODE_UARTEN_MASK 0x00008000
#define _U1MODE_UARTEN_LENGTH 0x00000001
#define _U1MODE_w_POSITION 0x00000000
#define _U1MODE_w_MASK 0xFFFFFFFF
#define _U1MODE_w_LENGTH 0x00000020
#define _U1STA_URXDA_POSITION 0x00000000
#define _U1STA_URXDA_MASK 0x00000001
#define _U1STA_URXDA_LENGTH 0x00000001
#define _U1STA_OERR_POSITION 0x00000001
#define _U1STA_OERR_MASK 0x00000002
#define _U1STA_OERR_LENGTH 0x00000001
#define _U1STA_FERR_POSITION 0x00000002
#define _U1STA_FERR_MASK 0x00000004
#define _U1STA_FERR_LENGTH 0x00000001
#define _U1STA_PERR_POSITION 0x00000003
#define _U1STA_PERR_MASK 0x00000008
#define _U1STA_PERR_LENGTH 0x00000001
#define _U1STA_RIDLE_POSITION 0x00000004
#define _U1STA_RIDLE_MASK 0x00000010
#define _U1STA_RIDLE_LENGTH 0x00000001
#define _U1STA_ADDEN_POSITION 0x00000005
#define _U1STA_ADDEN_MASK 0x00000020
#define _U1STA_ADDEN_LENGTH 0x00000001
#define _U1STA_URXISEL_POSITION 0x00000006
#define _U1STA_URXISEL_MASK 0x000000C0
#define _U1STA_URXISEL_LENGTH 0x00000002
#define _U1STA_TRMT_POSITION 0x00000008
#define _U1STA_TRMT_MASK 0x00000100
#define _U1STA_TRMT_LENGTH 0x00000001
#define _U1STA_UTXBF_POSITION 0x00000009
#define _U1STA_UTXBF_MASK 0x00000200
#define _U1STA_UTXBF_LENGTH 0x00000001
#define _U1STA_UTXEN_POSITION 0x0000000A
#define _U1STA_UTXEN_MASK 0x00000400
#define _U1STA_UTXEN_LENGTH 0x00000001
#define _U1STA_UTXBRK_POSITION 0x0000000B
#define _U1STA_UTXBRK_MASK 0x00000800
#define _U1STA_UTXBRK_LENGTH 0x00000001
#define _U1STA_URXEN_POSITION 0x0000000C
#define _U1STA_URXEN_MASK 0x00001000
#define _U1STA_URXEN_LENGTH 0x00000001
#define _U1STA_UTXINV_POSITION 0x0000000D
#define _U1STA_UTXINV_MASK 0x00002000
#define _U1STA_UTXINV_LENGTH 0x00000001
#define _U1STA_UTXISEL_POSITION 0x0000000E
#define _U1STA_UTXISEL_MASK 0x0000C000
#define _U1STA_UTXISEL_LENGTH 0x00000002
#define _U1STA_ADDR_POSITION 0x00000010
#define _U1STA_ADDR_MASK 0x00FF0000
#define _U1STA_ADDR_LENGTH 0x00000008
#define _U1STA_ADM_EN_POSITION 0x00000018
#define _U1STA_ADM_EN_MASK 0x01000000
#define _U1STA_ADM_EN_LENGTH 0x00000001
#define _U1STA_URXISEL0_POSITION 0x00000006
#define _U1STA_URXISEL0_MASK 0x00000040
#define _U1STA_URXISEL0_LENGTH 0x00000001
#define _U1STA_URXISEL1_POSITION 0x00000007
#define _U1STA_URXISEL1_MASK 0x00000080
#define _U1STA_URXISEL1_LENGTH 0x00000001
#define _U1STA_UTXISEL0_POSITION 0x0000000E
#define _U1STA_UTXISEL0_MASK 0x00004000
#define _U1STA_UTXISEL0_LENGTH 0x00000001
#define _U1STA_UTXISEL1_POSITION 0x0000000F
#define _U1STA_UTXISEL1_MASK 0x00008000
#define _U1STA_UTXISEL1_LENGTH 0x00000001
#define _U1STA_UTXSEL_POSITION 0x0000000E
#define _U1STA_UTXSEL_MASK 0x0000C000
#define _U1STA_UTXSEL_LENGTH 0x00000002
#define _U1STA_w_POSITION 0x00000000
#define _U1STA_w_MASK 0xFFFFFFFF
#define _U1STA_w_LENGTH 0x00000020
#define _U2MODE_STSEL_POSITION 0x00000000
#define _U2MODE_STSEL_MASK 0x00000001
#define _U2MODE_STSEL_LENGTH 0x00000001
#define _U2MODE_PDSEL_POSITION 0x00000001
#define _U2MODE_PDSEL_MASK 0x00000006
#define _U2MODE_PDSEL_LENGTH 0x00000002
#define _U2MODE_BRGH_POSITION 0x00000003
#define _U2MODE_BRGH_MASK 0x00000008
#define _U2MODE_BRGH_LENGTH 0x00000001
#define _U2MODE_RXINV_POSITION 0x00000004
#define _U2MODE_RXINV_MASK 0x00000010
#define _U2MODE_RXINV_LENGTH 0x00000001
#define _U2MODE_ABAUD_POSITION 0x00000005
#define _U2MODE_ABAUD_MASK 0x00000020
#define _U2MODE_ABAUD_LENGTH 0x00000001
#define _U2MODE_LPBACK_POSITION 0x00000006
#define _U2MODE_LPBACK_MASK 0x00000040
#define _U2MODE_LPBACK_LENGTH 0x00000001
#define _U2MODE_WAKE_POSITION 0x00000007
#define _U2MODE_WAKE_MASK 0x00000080
#define _U2MODE_WAKE_LENGTH 0x00000001
#define _U2MODE_UEN_POSITION 0x00000008
#define _U2MODE_UEN_MASK 0x00000300
#define _U2MODE_UEN_LENGTH 0x00000002
#define _U2MODE_RTSMD_POSITION 0x0000000B
#define _U2MODE_RTSMD_MASK 0x00000800
#define _U2MODE_RTSMD_LENGTH 0x00000001
#define _U2MODE_IREN_POSITION 0x0000000C
#define _U2MODE_IREN_MASK 0x00001000
#define _U2MODE_IREN_LENGTH 0x00000001
#define _U2MODE_SIDL_POSITION 0x0000000D
#define _U2MODE_SIDL_MASK 0x00002000
#define _U2MODE_SIDL_LENGTH 0x00000001
#define _U2MODE_ON_POSITION 0x0000000F
#define _U2MODE_ON_MASK 0x00008000
#define _U2MODE_ON_LENGTH 0x00000001
#define _U2MODE_PDSEL0_POSITION 0x00000001
#define _U2MODE_PDSEL0_MASK 0x00000002
#define _U2MODE_PDSEL0_LENGTH 0x00000001
#define _U2MODE_PDSEL1_POSITION 0x00000002
#define _U2MODE_PDSEL1_MASK 0x00000004
#define _U2MODE_PDSEL1_LENGTH 0x00000001
#define _U2MODE_UEN0_POSITION 0x00000008
#define _U2MODE_UEN0_MASK 0x00000100
#define _U2MODE_UEN0_LENGTH 0x00000001
#define _U2MODE_UEN1_POSITION 0x00000009
#define _U2MODE_UEN1_MASK 0x00000200
#define _U2MODE_UEN1_LENGTH 0x00000001
#define _U2MODE_USIDL_POSITION 0x0000000D
#define _U2MODE_USIDL_MASK 0x00002000
#define _U2MODE_USIDL_LENGTH 0x00000001
#define _U2MODE_UARTEN_POSITION 0x0000000F
#define _U2MODE_UARTEN_MASK 0x00008000
#define _U2MODE_UARTEN_LENGTH 0x00000001
#define _U2MODE_w_POSITION 0x00000000
#define _U2MODE_w_MASK 0xFFFFFFFF
#define _U2MODE_w_LENGTH 0x00000020
#define _U2STA_URXDA_POSITION 0x00000000
#define _U2STA_URXDA_MASK 0x00000001
#define _U2STA_URXDA_LENGTH 0x00000001
#define _U2STA_OERR_POSITION 0x00000001
#define _U2STA_OERR_MASK 0x00000002
#define _U2STA_OERR_LENGTH 0x00000001
#define _U2STA_FERR_POSITION 0x00000002
#define _U2STA_FERR_MASK 0x00000004
#define _U2STA_FERR_LENGTH 0x00000001
#define _U2STA_PERR_POSITION 0x00000003
#define _U2STA_PERR_MASK 0x00000008
#define _U2STA_PERR_LENGTH 0x00000001
#define _U2STA_RIDLE_POSITION 0x00000004
#define _U2STA_RIDLE_MASK 0x00000010
#define _U2STA_RIDLE_LENGTH 0x00000001
#define _U2STA_ADDEN_POSITION 0x00000005
#define _U2STA_ADDEN_MASK 0x00000020
#define _U2STA_ADDEN_LENGTH 0x00000001
#define _U2STA_URXISEL_POSITION 0x00000006
#define _U2STA_URXISEL_MASK 0x000000C0
#define _U2STA_URXISEL_LENGTH 0x00000002
#define _U2STA_TRMT_POSITION 0x00000008
#define _U2STA_TRMT_MASK 0x00000100
#define _U2STA_TRMT_LENGTH 0x00000001
#define _U2STA_UTXBF_POSITION 0x00000009
#define _U2STA_UTXBF_MASK 0x00000200
#define _U2STA_UTXBF_LENGTH 0x00000001
#define _U2STA_UTXEN_POSITION 0x0000000A
#define _U2STA_UTXEN_MASK 0x00000400
#define _U2STA_UTXEN_LENGTH 0x00000001
#define _U2STA_UTXBRK_POSITION 0x0000000B
#define _U2STA_UTXBRK_MASK 0x00000800
#define _U2STA_UTXBRK_LENGTH 0x00000001
#define _U2STA_URXEN_POSITION 0x0000000C
#define _U2STA_URXEN_MASK 0x00001000
#define _U2STA_URXEN_LENGTH 0x00000001
#define _U2STA_UTXINV_POSITION 0x0000000D
#define _U2STA_UTXINV_MASK 0x00002000
#define _U2STA_UTXINV_LENGTH 0x00000001
#define _U2STA_UTXISEL_POSITION 0x0000000E
#define _U2STA_UTXISEL_MASK 0x0000C000
#define _U2STA_UTXISEL_LENGTH 0x00000002
#define _U2STA_ADDR_POSITION 0x00000010
#define _U2STA_ADDR_MASK 0x00FF0000
#define _U2STA_ADDR_LENGTH 0x00000008
#define _U2STA_ADM_EN_POSITION 0x00000018
#define _U2STA_ADM_EN_MASK 0x01000000
#define _U2STA_ADM_EN_LENGTH 0x00000001
#define _U2STA_URXISEL0_POSITION 0x00000006
#define _U2STA_URXISEL0_MASK 0x00000040
#define _U2STA_URXISEL0_LENGTH 0x00000001
#define _U2STA_URXISEL1_POSITION 0x00000007
#define _U2STA_URXISEL1_MASK 0x00000080
#define _U2STA_URXISEL1_LENGTH 0x00000001
#define _U2STA_UTXISEL0_POSITION 0x0000000E
#define _U2STA_UTXISEL0_MASK 0x00004000
#define _U2STA_UTXISEL0_LENGTH 0x00000001
#define _U2STA_UTXISEL1_POSITION 0x0000000F
#define _U2STA_UTXISEL1_MASK 0x00008000
#define _U2STA_UTXISEL1_LENGTH 0x00000001
#define _U2STA_UTXSEL_POSITION 0x0000000E
#define _U2STA_UTXSEL_MASK 0x0000C000
#define _U2STA_UTXSEL_LENGTH 0x00000002
#define _U2STA_w_POSITION 0x00000000
#define _U2STA_w_MASK 0xFFFFFFFF
#define _U2STA_w_LENGTH 0x00000020
#define _PMCON_RDSP_POSITION 0x00000000
#define _PMCON_RDSP_MASK 0x00000001
#define _PMCON_RDSP_LENGTH 0x00000001
#define _PMCON_WRSP_POSITION 0x00000001
#define _PMCON_WRSP_MASK 0x00000002
#define _PMCON_WRSP_LENGTH 0x00000001
#define _PMCON_CS1P_POSITION 0x00000003
#define _PMCON_CS1P_MASK 0x00000008
#define _PMCON_CS1P_LENGTH 0x00000001
#define _PMCON_CS2P_POSITION 0x00000004
#define _PMCON_CS2P_MASK 0x00000010
#define _PMCON_CS2P_LENGTH 0x00000001
#define _PMCON_ALP_POSITION 0x00000005
#define _PMCON_ALP_MASK 0x00000020
#define _PMCON_ALP_LENGTH 0x00000001
#define _PMCON_CSF_POSITION 0x00000006
#define _PMCON_CSF_MASK 0x000000C0
#define _PMCON_CSF_LENGTH 0x00000002
#define _PMCON_PTRDEN_POSITION 0x00000008
#define _PMCON_PTRDEN_MASK 0x00000100
#define _PMCON_PTRDEN_LENGTH 0x00000001
#define _PMCON_PTWREN_POSITION 0x00000009
#define _PMCON_PTWREN_MASK 0x00000200
#define _PMCON_PTWREN_LENGTH 0x00000001
#define _PMCON_PMPTTL_POSITION 0x0000000A
#define _PMCON_PMPTTL_MASK 0x00000400
#define _PMCON_PMPTTL_LENGTH 0x00000001
#define _PMCON_ADRMUX_POSITION 0x0000000B
#define _PMCON_ADRMUX_MASK 0x00001800
#define _PMCON_ADRMUX_LENGTH 0x00000002
#define _PMCON_SIDL_POSITION 0x0000000D
#define _PMCON_SIDL_MASK 0x00002000
#define _PMCON_SIDL_LENGTH 0x00000001
#define _PMCON_ON_POSITION 0x0000000F
#define _PMCON_ON_MASK 0x00008000
#define _PMCON_ON_LENGTH 0x00000001
#define _PMCON_CSF0_POSITION 0x00000006
#define _PMCON_CSF0_MASK 0x00000040
#define _PMCON_CSF0_LENGTH 0x00000001
#define _PMCON_CSF1_POSITION 0x00000007
#define _PMCON_CSF1_MASK 0x00000080
#define _PMCON_CSF1_LENGTH 0x00000001
#define _PMCON_ADRMUX0_POSITION 0x0000000B
#define _PMCON_ADRMUX0_MASK 0x00000800
#define _PMCON_ADRMUX0_LENGTH 0x00000001
#define _PMCON_ADRMUX1_POSITION 0x0000000C
#define _PMCON_ADRMUX1_MASK 0x00001000
#define _PMCON_ADRMUX1_LENGTH 0x00000001
#define _PMCON_PSIDL_POSITION 0x0000000D
#define _PMCON_PSIDL_MASK 0x00002000
#define _PMCON_PSIDL_LENGTH 0x00000001
#define _PMCON_PMPEN_POSITION 0x0000000F
#define _PMCON_PMPEN_MASK 0x00008000
#define _PMCON_PMPEN_LENGTH 0x00000001
#define _PMCON_w_POSITION 0x00000000
#define _PMCON_w_MASK 0xFFFFFFFF
#define _PMCON_w_LENGTH 0x00000020
#define _PMMODE_WAITE_POSITION 0x00000000
#define _PMMODE_WAITE_MASK 0x00000003
#define _PMMODE_WAITE_LENGTH 0x00000002
#define _PMMODE_WAITM_POSITION 0x00000002
#define _PMMODE_WAITM_MASK 0x0000003C
#define _PMMODE_WAITM_LENGTH 0x00000004
#define _PMMODE_WAITB_POSITION 0x00000006
#define _PMMODE_WAITB_MASK 0x000000C0
#define _PMMODE_WAITB_LENGTH 0x00000002
#define _PMMODE_MODE_POSITION 0x00000008
#define _PMMODE_MODE_MASK 0x00000300
#define _PMMODE_MODE_LENGTH 0x00000002
#define _PMMODE_MODE16_POSITION 0x0000000A
#define _PMMODE_MODE16_MASK 0x00000400
#define _PMMODE_MODE16_LENGTH 0x00000001
#define _PMMODE_INCM_POSITION 0x0000000B
#define _PMMODE_INCM_MASK 0x00001800
#define _PMMODE_INCM_LENGTH 0x00000002
#define _PMMODE_IRQM_POSITION 0x0000000D
#define _PMMODE_IRQM_MASK 0x00006000
#define _PMMODE_IRQM_LENGTH 0x00000002
#define _PMMODE_BUSY_POSITION 0x0000000F
#define _PMMODE_BUSY_MASK 0x00008000
#define _PMMODE_BUSY_LENGTH 0x00000001
#define _PMMODE_WAITE0_POSITION 0x00000000
#define _PMMODE_WAITE0_MASK 0x00000001
#define _PMMODE_WAITE0_LENGTH 0x00000001
#define _PMMODE_WAITE1_POSITION 0x00000001
#define _PMMODE_WAITE1_MASK 0x00000002
#define _PMMODE_WAITE1_LENGTH 0x00000001
#define _PMMODE_WAITM0_POSITION 0x00000002
#define _PMMODE_WAITM0_MASK 0x00000004
#define _PMMODE_WAITM0_LENGTH 0x00000001
#define _PMMODE_WAITM1_POSITION 0x00000003
#define _PMMODE_WAITM1_MASK 0x00000008
#define _PMMODE_WAITM1_LENGTH 0x00000001
#define _PMMODE_WAITM2_POSITION 0x00000004
#define _PMMODE_WAITM2_MASK 0x00000010
#define _PMMODE_WAITM2_LENGTH 0x00000001
#define _PMMODE_WAITM3_POSITION 0x00000005
#define _PMMODE_WAITM3_MASK 0x00000020
#define _PMMODE_WAITM3_LENGTH 0x00000001
#define _PMMODE_WAITB0_POSITION 0x00000006
#define _PMMODE_WAITB0_MASK 0x00000040
#define _PMMODE_WAITB0_LENGTH 0x00000001
#define _PMMODE_WAITB1_POSITION 0x00000007
#define _PMMODE_WAITB1_MASK 0x00000080
#define _PMMODE_WAITB1_LENGTH 0x00000001
#define _PMMODE_MODE0_POSITION 0x00000008
#define _PMMODE_MODE0_MASK 0x00000100
#define _PMMODE_MODE0_LENGTH 0x00000001
#define _PMMODE_MODE1_POSITION 0x00000009
#define _PMMODE_MODE1_MASK 0x00000200
#define _PMMODE_MODE1_LENGTH 0x00000001
#define _PMMODE_INCM0_POSITION 0x0000000B
#define _PMMODE_INCM0_MASK 0x00000800
#define _PMMODE_INCM0_LENGTH 0x00000001
#define _PMMODE_INCM1_POSITION 0x0000000C
#define _PMMODE_INCM1_MASK 0x00001000
#define _PMMODE_INCM1_LENGTH 0x00000001
#define _PMMODE_IRQM0_POSITION 0x0000000D
#define _PMMODE_IRQM0_MASK 0x00002000
#define _PMMODE_IRQM0_LENGTH 0x00000001
#define _PMMODE_IRQM1_POSITION 0x0000000E
#define _PMMODE_IRQM1_MASK 0x00004000
#define _PMMODE_IRQM1_LENGTH 0x00000001
#define _PMMODE_w_POSITION 0x00000000
#define _PMMODE_w_MASK 0xFFFFFFFF
#define _PMMODE_w_LENGTH 0x00000020
#define _PMADDR_ADDR_POSITION 0x00000000
#define _PMADDR_ADDR_MASK 0x00003FFF
#define _PMADDR_ADDR_LENGTH 0x0000000E
#define _PMADDR_CS_POSITION 0x0000000E
#define _PMADDR_CS_MASK 0x0000C000
#define _PMADDR_CS_LENGTH 0x00000002
#define _PMADDR_PADDR_POSITION 0x00000000
#define _PMADDR_PADDR_MASK 0x00003FFF
#define _PMADDR_PADDR_LENGTH 0x0000000E
#define _PMADDR_CS1_POSITION 0x0000000E
#define _PMADDR_CS1_MASK 0x00004000
#define _PMADDR_CS1_LENGTH 0x00000001
#define _PMADDR_CS2_POSITION 0x0000000F
#define _PMADDR_CS2_MASK 0x00008000
#define _PMADDR_CS2_LENGTH 0x00000001
#define _PMADDR_w_POSITION 0x00000000
#define _PMADDR_w_MASK 0xFFFFFFFF
#define _PMADDR_w_LENGTH 0x00000020
#define _PMDOUT_DATAOUT_POSITION 0x00000000
#define _PMDOUT_DATAOUT_MASK 0xFFFFFFFF
#define _PMDOUT_DATAOUT_LENGTH 0x00000020
#define _PMDOUT_w_POSITION 0x00000000
#define _PMDOUT_w_MASK 0xFFFFFFFF
#define _PMDOUT_w_LENGTH 0x00000020
#define _PMDIN_DATAIN_POSITION 0x00000000
#define _PMDIN_DATAIN_MASK 0xFFFFFFFF
#define _PMDIN_DATAIN_LENGTH 0x00000020
#define _PMDIN_w_POSITION 0x00000000
#define _PMDIN_w_MASK 0xFFFFFFFF
#define _PMDIN_w_LENGTH 0x00000020
#define _PMAEN_PTEN_POSITION 0x00000000
#define _PMAEN_PTEN_MASK 0x0000FFFF
#define _PMAEN_PTEN_LENGTH 0x00000010
#define _PMAEN_PTEN0_POSITION 0x00000000
#define _PMAEN_PTEN0_MASK 0x00000001
#define _PMAEN_PTEN0_LENGTH 0x00000001
#define _PMAEN_PTEN1_POSITION 0x00000001
#define _PMAEN_PTEN1_MASK 0x00000002
#define _PMAEN_PTEN1_LENGTH 0x00000001
#define _PMAEN_PTEN2_POSITION 0x00000002
#define _PMAEN_PTEN2_MASK 0x00000004
#define _PMAEN_PTEN2_LENGTH 0x00000001
#define _PMAEN_PTEN3_POSITION 0x00000003
#define _PMAEN_PTEN3_MASK 0x00000008
#define _PMAEN_PTEN3_LENGTH 0x00000001
#define _PMAEN_PTEN4_POSITION 0x00000004
#define _PMAEN_PTEN4_MASK 0x00000010
#define _PMAEN_PTEN4_LENGTH 0x00000001
#define _PMAEN_PTEN5_POSITION 0x00000005
#define _PMAEN_PTEN5_MASK 0x00000020
#define _PMAEN_PTEN5_LENGTH 0x00000001
#define _PMAEN_PTEN6_POSITION 0x00000006
#define _PMAEN_PTEN6_MASK 0x00000040
#define _PMAEN_PTEN6_LENGTH 0x00000001
#define _PMAEN_PTEN7_POSITION 0x00000007
#define _PMAEN_PTEN7_MASK 0x00000080
#define _PMAEN_PTEN7_LENGTH 0x00000001
#define _PMAEN_PTEN8_POSITION 0x00000008
#define _PMAEN_PTEN8_MASK 0x00000100
#define _PMAEN_PTEN8_LENGTH 0x00000001
#define _PMAEN_PTEN9_POSITION 0x00000009
#define _PMAEN_PTEN9_MASK 0x00000200
#define _PMAEN_PTEN9_LENGTH 0x00000001
#define _PMAEN_PTEN10_POSITION 0x0000000A
#define _PMAEN_PTEN10_MASK 0x00000400
#define _PMAEN_PTEN10_LENGTH 0x00000001
#define _PMAEN_PTEN11_POSITION 0x0000000B
#define _PMAEN_PTEN11_MASK 0x00000800
#define _PMAEN_PTEN11_LENGTH 0x00000001
#define _PMAEN_PTEN12_POSITION 0x0000000C
#define _PMAEN_PTEN12_MASK 0x00001000
#define _PMAEN_PTEN12_LENGTH 0x00000001
#define _PMAEN_PTEN13_POSITION 0x0000000D
#define _PMAEN_PTEN13_MASK 0x00002000
#define _PMAEN_PTEN13_LENGTH 0x00000001
#define _PMAEN_PTEN14_POSITION 0x0000000E
#define _PMAEN_PTEN14_MASK 0x00004000
#define _PMAEN_PTEN14_LENGTH 0x00000001
#define _PMAEN_PTEN15_POSITION 0x0000000F
#define _PMAEN_PTEN15_MASK 0x00008000
#define _PMAEN_PTEN15_LENGTH 0x00000001
#define _PMAEN_w_POSITION 0x00000000
#define _PMAEN_w_MASK 0xFFFFFFFF
#define _PMAEN_w_LENGTH 0x00000020
#define _PMSTAT_OB0E_POSITION 0x00000000
#define _PMSTAT_OB0E_MASK 0x00000001
#define _PMSTAT_OB0E_LENGTH 0x00000001
#define _PMSTAT_OB1E_POSITION 0x00000001
#define _PMSTAT_OB1E_MASK 0x00000002
#define _PMSTAT_OB1E_LENGTH 0x00000001
#define _PMSTAT_OB2E_POSITION 0x00000002
#define _PMSTAT_OB2E_MASK 0x00000004
#define _PMSTAT_OB2E_LENGTH 0x00000001
#define _PMSTAT_OB3E_POSITION 0x00000003
#define _PMSTAT_OB3E_MASK 0x00000008
#define _PMSTAT_OB3E_LENGTH 0x00000001
#define _PMSTAT_OBUF_POSITION 0x00000006
#define _PMSTAT_OBUF_MASK 0x00000040
#define _PMSTAT_OBUF_LENGTH 0x00000001
#define _PMSTAT_OBE_POSITION 0x00000007
#define _PMSTAT_OBE_MASK 0x00000080
#define _PMSTAT_OBE_LENGTH 0x00000001
#define _PMSTAT_IB0F_POSITION 0x00000008
#define _PMSTAT_IB0F_MASK 0x00000100
#define _PMSTAT_IB0F_LENGTH 0x00000001
#define _PMSTAT_IB1F_POSITION 0x00000009
#define _PMSTAT_IB1F_MASK 0x00000200
#define _PMSTAT_IB1F_LENGTH 0x00000001
#define _PMSTAT_IB2F_POSITION 0x0000000A
#define _PMSTAT_IB2F_MASK 0x00000400
#define _PMSTAT_IB2F_LENGTH 0x00000001
#define _PMSTAT_IB3F_POSITION 0x0000000B
#define _PMSTAT_IB3F_MASK 0x00000800
#define _PMSTAT_IB3F_LENGTH 0x00000001
#define _PMSTAT_IBOV_POSITION 0x0000000E
#define _PMSTAT_IBOV_MASK 0x00004000
#define _PMSTAT_IBOV_LENGTH 0x00000001
#define _PMSTAT_IBF_POSITION 0x0000000F
#define _PMSTAT_IBF_MASK 0x00008000
#define _PMSTAT_IBF_LENGTH 0x00000001
#define _PMSTAT_w_POSITION 0x00000000
#define _PMSTAT_w_MASK 0xFFFFFFFF
#define _PMSTAT_w_LENGTH 0x00000020
#define _AD1CON1_DONE_POSITION 0x00000000
#define _AD1CON1_DONE_MASK 0x00000001
#define _AD1CON1_DONE_LENGTH 0x00000001
#define _AD1CON1_SAMP_POSITION 0x00000001
#define _AD1CON1_SAMP_MASK 0x00000002
#define _AD1CON1_SAMP_LENGTH 0x00000001
#define _AD1CON1_ASAM_POSITION 0x00000002
#define _AD1CON1_ASAM_MASK 0x00000004
#define _AD1CON1_ASAM_LENGTH 0x00000001
#define _AD1CON1_CLRASAM_POSITION 0x00000004
#define _AD1CON1_CLRASAM_MASK 0x00000010
#define _AD1CON1_CLRASAM_LENGTH 0x00000001
#define _AD1CON1_SSRC_POSITION 0x00000005
#define _AD1CON1_SSRC_MASK 0x000000E0
#define _AD1CON1_SSRC_LENGTH 0x00000003
#define _AD1CON1_FORM_POSITION 0x00000008
#define _AD1CON1_FORM_MASK 0x00000700
#define _AD1CON1_FORM_LENGTH 0x00000003
#define _AD1CON1_SIDL_POSITION 0x0000000D
#define _AD1CON1_SIDL_MASK 0x00002000
#define _AD1CON1_SIDL_LENGTH 0x00000001
#define _AD1CON1_ON_POSITION 0x0000000F
#define _AD1CON1_ON_MASK 0x00008000
#define _AD1CON1_ON_LENGTH 0x00000001
#define _AD1CON1_SSRC0_POSITION 0x00000005
#define _AD1CON1_SSRC0_MASK 0x00000020
#define _AD1CON1_SSRC0_LENGTH 0x00000001
#define _AD1CON1_SSRC1_POSITION 0x00000006
#define _AD1CON1_SSRC1_MASK 0x00000040
#define _AD1CON1_SSRC1_LENGTH 0x00000001
#define _AD1CON1_SSRC2_POSITION 0x00000007
#define _AD1CON1_SSRC2_MASK 0x00000080
#define _AD1CON1_SSRC2_LENGTH 0x00000001
#define _AD1CON1_FORM0_POSITION 0x00000008
#define _AD1CON1_FORM0_MASK 0x00000100
#define _AD1CON1_FORM0_LENGTH 0x00000001
#define _AD1CON1_FORM1_POSITION 0x00000009
#define _AD1CON1_FORM1_MASK 0x00000200
#define _AD1CON1_FORM1_LENGTH 0x00000001
#define _AD1CON1_FORM2_POSITION 0x0000000A
#define _AD1CON1_FORM2_MASK 0x00000400
#define _AD1CON1_FORM2_LENGTH 0x00000001
#define _AD1CON1_ADSIDL_POSITION 0x0000000D
#define _AD1CON1_ADSIDL_MASK 0x00002000
#define _AD1CON1_ADSIDL_LENGTH 0x00000001
#define _AD1CON1_ADON_POSITION 0x0000000F
#define _AD1CON1_ADON_MASK 0x00008000
#define _AD1CON1_ADON_LENGTH 0x00000001
#define _AD1CON1_w_POSITION 0x00000000
#define _AD1CON1_w_MASK 0xFFFFFFFF
#define _AD1CON1_w_LENGTH 0x00000020
#define _AD1CON2_ALTS_POSITION 0x00000000
#define _AD1CON2_ALTS_MASK 0x00000001
#define _AD1CON2_ALTS_LENGTH 0x00000001
#define _AD1CON2_BUFM_POSITION 0x00000001
#define _AD1CON2_BUFM_MASK 0x00000002
#define _AD1CON2_BUFM_LENGTH 0x00000001
#define _AD1CON2_SMPI_POSITION 0x00000002
#define _AD1CON2_SMPI_MASK 0x0000003C
#define _AD1CON2_SMPI_LENGTH 0x00000004
#define _AD1CON2_BUFS_POSITION 0x00000007
#define _AD1CON2_BUFS_MASK 0x00000080
#define _AD1CON2_BUFS_LENGTH 0x00000001
#define _AD1CON2_CSCNA_POSITION 0x0000000A
#define _AD1CON2_CSCNA_MASK 0x00000400
#define _AD1CON2_CSCNA_LENGTH 0x00000001
#define _AD1CON2_OFFCAL_POSITION 0x0000000C
#define _AD1CON2_OFFCAL_MASK 0x00001000
#define _AD1CON2_OFFCAL_LENGTH 0x00000001
#define _AD1CON2_VCFG_POSITION 0x0000000D
#define _AD1CON2_VCFG_MASK 0x0000E000
#define _AD1CON2_VCFG_LENGTH 0x00000003
#define _AD1CON2_SMPI0_POSITION 0x00000002
#define _AD1CON2_SMPI0_MASK 0x00000004
#define _AD1CON2_SMPI0_LENGTH 0x00000001
#define _AD1CON2_SMPI1_POSITION 0x00000003
#define _AD1CON2_SMPI1_MASK 0x00000008
#define _AD1CON2_SMPI1_LENGTH 0x00000001
#define _AD1CON2_SMPI2_POSITION 0x00000004
#define _AD1CON2_SMPI2_MASK 0x00000010
#define _AD1CON2_SMPI2_LENGTH 0x00000001
#define _AD1CON2_SMPI3_POSITION 0x00000005
#define _AD1CON2_SMPI3_MASK 0x00000020
#define _AD1CON2_SMPI3_LENGTH 0x00000001
#define _AD1CON2_VCFG0_POSITION 0x0000000D
#define _AD1CON2_VCFG0_MASK 0x00002000
#define _AD1CON2_VCFG0_LENGTH 0x00000001
#define _AD1CON2_VCFG1_POSITION 0x0000000E
#define _AD1CON2_VCFG1_MASK 0x00004000
#define _AD1CON2_VCFG1_LENGTH 0x00000001
#define _AD1CON2_VCFG2_POSITION 0x0000000F
#define _AD1CON2_VCFG2_MASK 0x00008000
#define _AD1CON2_VCFG2_LENGTH 0x00000001
#define _AD1CON2_w_POSITION 0x00000000
#define _AD1CON2_w_MASK 0xFFFFFFFF
#define _AD1CON2_w_LENGTH 0x00000020
#define _AD1CON3_ADCS_POSITION 0x00000000
#define _AD1CON3_ADCS_MASK 0x000000FF
#define _AD1CON3_ADCS_LENGTH 0x00000008
#define _AD1CON3_SAMC_POSITION 0x00000008
#define _AD1CON3_SAMC_MASK 0x00001F00
#define _AD1CON3_SAMC_LENGTH 0x00000005
#define _AD1CON3_ADRC_POSITION 0x0000000F
#define _AD1CON3_ADRC_MASK 0x00008000
#define _AD1CON3_ADRC_LENGTH 0x00000001
#define _AD1CON3_ADCS0_POSITION 0x00000000
#define _AD1CON3_ADCS0_MASK 0x00000001
#define _AD1CON3_ADCS0_LENGTH 0x00000001
#define _AD1CON3_ADCS1_POSITION 0x00000001
#define _AD1CON3_ADCS1_MASK 0x00000002
#define _AD1CON3_ADCS1_LENGTH 0x00000001
#define _AD1CON3_ADCS2_POSITION 0x00000002
#define _AD1CON3_ADCS2_MASK 0x00000004
#define _AD1CON3_ADCS2_LENGTH 0x00000001
#define _AD1CON3_ADCS3_POSITION 0x00000003
#define _AD1CON3_ADCS3_MASK 0x00000008
#define _AD1CON3_ADCS3_LENGTH 0x00000001
#define _AD1CON3_ADCS4_POSITION 0x00000004
#define _AD1CON3_ADCS4_MASK 0x00000010
#define _AD1CON3_ADCS4_LENGTH 0x00000001
#define _AD1CON3_ADCS5_POSITION 0x00000005
#define _AD1CON3_ADCS5_MASK 0x00000020
#define _AD1CON3_ADCS5_LENGTH 0x00000001
#define _AD1CON3_ADCS6_POSITION 0x00000006
#define _AD1CON3_ADCS6_MASK 0x00000040
#define _AD1CON3_ADCS6_LENGTH 0x00000001
#define _AD1CON3_ADCS7_POSITION 0x00000007
#define _AD1CON3_ADCS7_MASK 0x00000080
#define _AD1CON3_ADCS7_LENGTH 0x00000001
#define _AD1CON3_SAMC0_POSITION 0x00000008
#define _AD1CON3_SAMC0_MASK 0x00000100
#define _AD1CON3_SAMC0_LENGTH 0x00000001
#define _AD1CON3_SAMC1_POSITION 0x00000009
#define _AD1CON3_SAMC1_MASK 0x00000200
#define _AD1CON3_SAMC1_LENGTH 0x00000001
#define _AD1CON3_SAMC2_POSITION 0x0000000A
#define _AD1CON3_SAMC2_MASK 0x00000400
#define _AD1CON3_SAMC2_LENGTH 0x00000001
#define _AD1CON3_SAMC3_POSITION 0x0000000B
#define _AD1CON3_SAMC3_MASK 0x00000800
#define _AD1CON3_SAMC3_LENGTH 0x00000001
#define _AD1CON3_SAMC4_POSITION 0x0000000C
#define _AD1CON3_SAMC4_MASK 0x00001000
#define _AD1CON3_SAMC4_LENGTH 0x00000001
#define _AD1CON3_w_POSITION 0x00000000
#define _AD1CON3_w_MASK 0xFFFFFFFF
#define _AD1CON3_w_LENGTH 0x00000020
#define _AD1CHS_CH0SA_POSITION 0x00000010
#define _AD1CHS_CH0SA_MASK 0x000F0000
#define _AD1CHS_CH0SA_LENGTH 0x00000004
#define _AD1CHS_CH0NA_POSITION 0x00000017
#define _AD1CHS_CH0NA_MASK 0x00800000
#define _AD1CHS_CH0NA_LENGTH 0x00000001
#define _AD1CHS_CH0SB_POSITION 0x00000018
#define _AD1CHS_CH0SB_MASK 0x0F000000
#define _AD1CHS_CH0SB_LENGTH 0x00000004
#define _AD1CHS_CH0NB_POSITION 0x0000001F
#define _AD1CHS_CH0NB_MASK 0x80000000
#define _AD1CHS_CH0NB_LENGTH 0x00000001
#define _AD1CHS_CH0SA0_POSITION 0x00000010
#define _AD1CHS_CH0SA0_MASK 0x00010000
#define _AD1CHS_CH0SA0_LENGTH 0x00000001
#define _AD1CHS_CH0SA1_POSITION 0x00000011
#define _AD1CHS_CH0SA1_MASK 0x00020000
#define _AD1CHS_CH0SA1_LENGTH 0x00000001
#define _AD1CHS_CH0SA2_POSITION 0x00000012
#define _AD1CHS_CH0SA2_MASK 0x00040000
#define _AD1CHS_CH0SA2_LENGTH 0x00000001
#define _AD1CHS_CH0SA3_POSITION 0x00000013
#define _AD1CHS_CH0SA3_MASK 0x00080000
#define _AD1CHS_CH0SA3_LENGTH 0x00000001
#define _AD1CHS_CH0SB0_POSITION 0x00000018
#define _AD1CHS_CH0SB0_MASK 0x01000000
#define _AD1CHS_CH0SB0_LENGTH 0x00000001
#define _AD1CHS_CH0SB1_POSITION 0x00000019
#define _AD1CHS_CH0SB1_MASK 0x02000000
#define _AD1CHS_CH0SB1_LENGTH 0x00000001
#define _AD1CHS_CH0SB2_POSITION 0x0000001A
#define _AD1CHS_CH0SB2_MASK 0x04000000
#define _AD1CHS_CH0SB2_LENGTH 0x00000001
#define _AD1CHS_CH0SB3_POSITION 0x0000001B
#define _AD1CHS_CH0SB3_MASK 0x08000000
#define _AD1CHS_CH0SB3_LENGTH 0x00000001
#define _AD1CHS_w_POSITION 0x00000000
#define _AD1CHS_w_MASK 0xFFFFFFFF
#define _AD1CHS_w_LENGTH 0x00000020
#define _AD1CSSL_CSSL_POSITION 0x00000000
#define _AD1CSSL_CSSL_MASK 0x0000FFFF
#define _AD1CSSL_CSSL_LENGTH 0x00000010
#define _AD1CSSL_CSSL0_POSITION 0x00000000
#define _AD1CSSL_CSSL0_MASK 0x00000001
#define _AD1CSSL_CSSL0_LENGTH 0x00000001
#define _AD1CSSL_CSSL1_POSITION 0x00000001
#define _AD1CSSL_CSSL1_MASK 0x00000002
#define _AD1CSSL_CSSL1_LENGTH 0x00000001
#define _AD1CSSL_CSSL2_POSITION 0x00000002
#define _AD1CSSL_CSSL2_MASK 0x00000004
#define _AD1CSSL_CSSL2_LENGTH 0x00000001
#define _AD1CSSL_CSSL3_POSITION 0x00000003
#define _AD1CSSL_CSSL3_MASK 0x00000008
#define _AD1CSSL_CSSL3_LENGTH 0x00000001
#define _AD1CSSL_CSSL4_POSITION 0x00000004
#define _AD1CSSL_CSSL4_MASK 0x00000010
#define _AD1CSSL_CSSL4_LENGTH 0x00000001
#define _AD1CSSL_CSSL5_POSITION 0x00000005
#define _AD1CSSL_CSSL5_MASK 0x00000020
#define _AD1CSSL_CSSL5_LENGTH 0x00000001
#define _AD1CSSL_CSSL6_POSITION 0x00000006
#define _AD1CSSL_CSSL6_MASK 0x00000040
#define _AD1CSSL_CSSL6_LENGTH 0x00000001
#define _AD1CSSL_CSSL7_POSITION 0x00000007
#define _AD1CSSL_CSSL7_MASK 0x00000080
#define _AD1CSSL_CSSL7_LENGTH 0x00000001
#define _AD1CSSL_CSSL8_POSITION 0x00000008
#define _AD1CSSL_CSSL8_MASK 0x00000100
#define _AD1CSSL_CSSL8_LENGTH 0x00000001
#define _AD1CSSL_CSSL9_POSITION 0x00000009
#define _AD1CSSL_CSSL9_MASK 0x00000200
#define _AD1CSSL_CSSL9_LENGTH 0x00000001
#define _AD1CSSL_CSSL10_POSITION 0x0000000A
#define _AD1CSSL_CSSL10_MASK 0x00000400
#define _AD1CSSL_CSSL10_LENGTH 0x00000001
#define _AD1CSSL_CSSL11_POSITION 0x0000000B
#define _AD1CSSL_CSSL11_MASK 0x00000800
#define _AD1CSSL_CSSL11_LENGTH 0x00000001
#define _AD1CSSL_CSSL12_POSITION 0x0000000C
#define _AD1CSSL_CSSL12_MASK 0x00001000
#define _AD1CSSL_CSSL12_LENGTH 0x00000001
#define _AD1CSSL_CSSL13_POSITION 0x0000000D
#define _AD1CSSL_CSSL13_MASK 0x00002000
#define _AD1CSSL_CSSL13_LENGTH 0x00000001
#define _AD1CSSL_CSSL14_POSITION 0x0000000E
#define _AD1CSSL_CSSL14_MASK 0x00004000
#define _AD1CSSL_CSSL14_LENGTH 0x00000001
#define _AD1CSSL_CSSL15_POSITION 0x0000000F
#define _AD1CSSL_CSSL15_MASK 0x00008000
#define _AD1CSSL_CSSL15_LENGTH 0x00000001
#define _AD1CSSL_w_POSITION 0x00000000
#define _AD1CSSL_w_MASK 0xFFFFFFFF
#define _AD1CSSL_w_LENGTH 0x00000020
#define _AD1PCFG_PCFG_POSITION 0x00000000
#define _AD1PCFG_PCFG_MASK 0x0000FFFF
#define _AD1PCFG_PCFG_LENGTH 0x00000010
#define _AD1PCFG_PCFG0_POSITION 0x00000000
#define _AD1PCFG_PCFG0_MASK 0x00000001
#define _AD1PCFG_PCFG0_LENGTH 0x00000001
#define _AD1PCFG_PCFG1_POSITION 0x00000001
#define _AD1PCFG_PCFG1_MASK 0x00000002
#define _AD1PCFG_PCFG1_LENGTH 0x00000001
#define _AD1PCFG_PCFG2_POSITION 0x00000002
#define _AD1PCFG_PCFG2_MASK 0x00000004
#define _AD1PCFG_PCFG2_LENGTH 0x00000001
#define _AD1PCFG_PCFG3_POSITION 0x00000003
#define _AD1PCFG_PCFG3_MASK 0x00000008
#define _AD1PCFG_PCFG3_LENGTH 0x00000001
#define _AD1PCFG_PCFG4_POSITION 0x00000004
#define _AD1PCFG_PCFG4_MASK 0x00000010
#define _AD1PCFG_PCFG4_LENGTH 0x00000001
#define _AD1PCFG_PCFG5_POSITION 0x00000005
#define _AD1PCFG_PCFG5_MASK 0x00000020
#define _AD1PCFG_PCFG5_LENGTH 0x00000001
#define _AD1PCFG_PCFG6_POSITION 0x00000006
#define _AD1PCFG_PCFG6_MASK 0x00000040
#define _AD1PCFG_PCFG6_LENGTH 0x00000001
#define _AD1PCFG_PCFG7_POSITION 0x00000007
#define _AD1PCFG_PCFG7_MASK 0x00000080
#define _AD1PCFG_PCFG7_LENGTH 0x00000001
#define _AD1PCFG_PCFG8_POSITION 0x00000008
#define _AD1PCFG_PCFG8_MASK 0x00000100
#define _AD1PCFG_PCFG8_LENGTH 0x00000001
#define _AD1PCFG_PCFG9_POSITION 0x00000009
#define _AD1PCFG_PCFG9_MASK 0x00000200
#define _AD1PCFG_PCFG9_LENGTH 0x00000001
#define _AD1PCFG_PCFG10_POSITION 0x0000000A
#define _AD1PCFG_PCFG10_MASK 0x00000400
#define _AD1PCFG_PCFG10_LENGTH 0x00000001
#define _AD1PCFG_PCFG11_POSITION 0x0000000B
#define _AD1PCFG_PCFG11_MASK 0x00000800
#define _AD1PCFG_PCFG11_LENGTH 0x00000001
#define _AD1PCFG_PCFG12_POSITION 0x0000000C
#define _AD1PCFG_PCFG12_MASK 0x00001000
#define _AD1PCFG_PCFG12_LENGTH 0x00000001
#define _AD1PCFG_PCFG13_POSITION 0x0000000D
#define _AD1PCFG_PCFG13_MASK 0x00002000
#define _AD1PCFG_PCFG13_LENGTH 0x00000001
#define _AD1PCFG_PCFG14_POSITION 0x0000000E
#define _AD1PCFG_PCFG14_MASK 0x00004000
#define _AD1PCFG_PCFG14_LENGTH 0x00000001
#define _AD1PCFG_PCFG15_POSITION 0x0000000F
#define _AD1PCFG_PCFG15_MASK 0x00008000
#define _AD1PCFG_PCFG15_LENGTH 0x00000001
#define _AD1PCFG_w_POSITION 0x00000000
#define _AD1PCFG_w_MASK 0xFFFFFFFF
#define _AD1PCFG_w_LENGTH 0x00000020
#define _CVRCON_CVR_POSITION 0x00000000
#define _CVRCON_CVR_MASK 0x0000000F
#define _CVRCON_CVR_LENGTH 0x00000004
#define _CVRCON_CVRSS_POSITION 0x00000004
#define _CVRCON_CVRSS_MASK 0x00000010
#define _CVRCON_CVRSS_LENGTH 0x00000001
#define _CVRCON_CVRR_POSITION 0x00000005
#define _CVRCON_CVRR_MASK 0x00000020
#define _CVRCON_CVRR_LENGTH 0x00000001
#define _CVRCON_CVROE_POSITION 0x00000006
#define _CVRCON_CVROE_MASK 0x00000040
#define _CVRCON_CVROE_LENGTH 0x00000001
#define _CVRCON_ON_POSITION 0x0000000F
#define _CVRCON_ON_MASK 0x00008000
#define _CVRCON_ON_LENGTH 0x00000001
#define _CVRCON_CVR0_POSITION 0x00000000
#define _CVRCON_CVR0_MASK 0x00000001
#define _CVRCON_CVR0_LENGTH 0x00000001
#define _CVRCON_CVR1_POSITION 0x00000001
#define _CVRCON_CVR1_MASK 0x00000002
#define _CVRCON_CVR1_LENGTH 0x00000001
#define _CVRCON_CVR2_POSITION 0x00000002
#define _CVRCON_CVR2_MASK 0x00000004
#define _CVRCON_CVR2_LENGTH 0x00000001
#define _CVRCON_CVR3_POSITION 0x00000003
#define _CVRCON_CVR3_MASK 0x00000008
#define _CVRCON_CVR3_LENGTH 0x00000001
#define _CVRCON_w_POSITION 0x00000000
#define _CVRCON_w_MASK 0xFFFFFFFF
#define _CVRCON_w_LENGTH 0x00000020
#define _CM1CON_CCH_POSITION 0x00000000
#define _CM1CON_CCH_MASK 0x00000003
#define _CM1CON_CCH_LENGTH 0x00000002
#define _CM1CON_CREF_POSITION 0x00000004
#define _CM1CON_CREF_MASK 0x00000010
#define _CM1CON_CREF_LENGTH 0x00000001
#define _CM1CON_EVPOL_POSITION 0x00000006
#define _CM1CON_EVPOL_MASK 0x000000C0
#define _CM1CON_EVPOL_LENGTH 0x00000002
#define _CM1CON_COUT_POSITION 0x00000008
#define _CM1CON_COUT_MASK 0x00000100
#define _CM1CON_COUT_LENGTH 0x00000001
#define _CM1CON_CPOL_POSITION 0x0000000D
#define _CM1CON_CPOL_MASK 0x00002000
#define _CM1CON_CPOL_LENGTH 0x00000001
#define _CM1CON_COE_POSITION 0x0000000E
#define _CM1CON_COE_MASK 0x00004000
#define _CM1CON_COE_LENGTH 0x00000001
#define _CM1CON_ON_POSITION 0x0000000F
#define _CM1CON_ON_MASK 0x00008000
#define _CM1CON_ON_LENGTH 0x00000001
#define _CM1CON_CCH0_POSITION 0x00000000
#define _CM1CON_CCH0_MASK 0x00000001
#define _CM1CON_CCH0_LENGTH 0x00000001
#define _CM1CON_CCH1_POSITION 0x00000001
#define _CM1CON_CCH1_MASK 0x00000002
#define _CM1CON_CCH1_LENGTH 0x00000001
#define _CM1CON_EVPOL0_POSITION 0x00000006
#define _CM1CON_EVPOL0_MASK 0x00000040
#define _CM1CON_EVPOL0_LENGTH 0x00000001
#define _CM1CON_EVPOL1_POSITION 0x00000007
#define _CM1CON_EVPOL1_MASK 0x00000080
#define _CM1CON_EVPOL1_LENGTH 0x00000001
#define _CM1CON_w_POSITION 0x00000000
#define _CM1CON_w_MASK 0xFFFFFFFF
#define _CM1CON_w_LENGTH 0x00000020
#define _CM2CON_CCH_POSITION 0x00000000
#define _CM2CON_CCH_MASK 0x00000003
#define _CM2CON_CCH_LENGTH 0x00000002
#define _CM2CON_CREF_POSITION 0x00000004
#define _CM2CON_CREF_MASK 0x00000010
#define _CM2CON_CREF_LENGTH 0x00000001
#define _CM2CON_EVPOL_POSITION 0x00000006
#define _CM2CON_EVPOL_MASK 0x000000C0
#define _CM2CON_EVPOL_LENGTH 0x00000002
#define _CM2CON_COUT_POSITION 0x00000008
#define _CM2CON_COUT_MASK 0x00000100
#define _CM2CON_COUT_LENGTH 0x00000001
#define _CM2CON_CPOL_POSITION 0x0000000D
#define _CM2CON_CPOL_MASK 0x00002000
#define _CM2CON_CPOL_LENGTH 0x00000001
#define _CM2CON_COE_POSITION 0x0000000E
#define _CM2CON_COE_MASK 0x00004000
#define _CM2CON_COE_LENGTH 0x00000001
#define _CM2CON_ON_POSITION 0x0000000F
#define _CM2CON_ON_MASK 0x00008000
#define _CM2CON_ON_LENGTH 0x00000001
#define _CM2CON_CCH0_POSITION 0x00000000
#define _CM2CON_CCH0_MASK 0x00000001
#define _CM2CON_CCH0_LENGTH 0x00000001
#define _CM2CON_CCH1_POSITION 0x00000001
#define _CM2CON_CCH1_MASK 0x00000002
#define _CM2CON_CCH1_LENGTH 0x00000001
#define _CM2CON_EVPOL0_POSITION 0x00000006
#define _CM2CON_EVPOL0_MASK 0x00000040
#define _CM2CON_EVPOL0_LENGTH 0x00000001
#define _CM2CON_EVPOL1_POSITION 0x00000007
#define _CM2CON_EVPOL1_MASK 0x00000080
#define _CM2CON_EVPOL1_LENGTH 0x00000001
#define _CM2CON_w_POSITION 0x00000000
#define _CM2CON_w_MASK 0xFFFFFFFF
#define _CM2CON_w_LENGTH 0x00000020
#define _CMSTAT_C1OUT_POSITION 0x00000000
#define _CMSTAT_C1OUT_MASK 0x00000001
#define _CMSTAT_C1OUT_LENGTH 0x00000001
#define _CMSTAT_C2OUT_POSITION 0x00000001
#define _CMSTAT_C2OUT_MASK 0x00000002
#define _CMSTAT_C2OUT_LENGTH 0x00000001
#define _CMSTAT_SIDL_POSITION 0x0000000D
#define _CMSTAT_SIDL_MASK 0x00002000
#define _CMSTAT_SIDL_LENGTH 0x00000001
#define _CMSTAT_w_POSITION 0x00000000
#define _CMSTAT_w_MASK 0xFFFFFFFF
#define _CMSTAT_w_LENGTH 0x00000020
#define _OSCCON_OSWEN_POSITION 0x00000000
#define _OSCCON_OSWEN_MASK 0x00000001
#define _OSCCON_OSWEN_LENGTH 0x00000001
#define _OSCCON_SOSCEN_POSITION 0x00000001
#define _OSCCON_SOSCEN_MASK 0x00000002
#define _OSCCON_SOSCEN_LENGTH 0x00000001
#define _OSCCON_UFRCEN_POSITION 0x00000002
#define _OSCCON_UFRCEN_MASK 0x00000004
#define _OSCCON_UFRCEN_LENGTH 0x00000001
#define _OSCCON_CF_POSITION 0x00000003
#define _OSCCON_CF_MASK 0x00000008
#define _OSCCON_CF_LENGTH 0x00000001
#define _OSCCON_SLPEN_POSITION 0x00000004
#define _OSCCON_SLPEN_MASK 0x00000010
#define _OSCCON_SLPEN_LENGTH 0x00000001
#define _OSCCON_LOCK_POSITION 0x00000005
#define _OSCCON_LOCK_MASK 0x00000020
#define _OSCCON_LOCK_LENGTH 0x00000001
#define _OSCCON_ULOCK_POSITION 0x00000006
#define _OSCCON_ULOCK_MASK 0x00000040
#define _OSCCON_ULOCK_LENGTH 0x00000001
#define _OSCCON_CLKLOCK_POSITION 0x00000007
#define _OSCCON_CLKLOCK_MASK 0x00000080
#define _OSCCON_CLKLOCK_LENGTH 0x00000001
#define _OSCCON_NOSC_POSITION 0x00000008
#define _OSCCON_NOSC_MASK 0x00000700
#define _OSCCON_NOSC_LENGTH 0x00000003
#define _OSCCON_COSC_POSITION 0x0000000C
#define _OSCCON_COSC_MASK 0x00007000
#define _OSCCON_COSC_LENGTH 0x00000003
#define _OSCCON_PLLMULT_POSITION 0x00000010
#define _OSCCON_PLLMULT_MASK 0x00070000
#define _OSCCON_PLLMULT_LENGTH 0x00000003
#define _OSCCON_PBDIV_POSITION 0x00000013
#define _OSCCON_PBDIV_MASK 0x00180000
#define _OSCCON_PBDIV_LENGTH 0x00000002
#define _OSCCON_SOSCRDY_POSITION 0x00000016
#define _OSCCON_SOSCRDY_MASK 0x00400000
#define _OSCCON_SOSCRDY_LENGTH 0x00000001
#define _OSCCON_FRCDIV_POSITION 0x00000018
#define _OSCCON_FRCDIV_MASK 0x07000000
#define _OSCCON_FRCDIV_LENGTH 0x00000003
#define _OSCCON_PLLODIV_POSITION 0x0000001B
#define _OSCCON_PLLODIV_MASK 0x38000000
#define _OSCCON_PLLODIV_LENGTH 0x00000003
#define _OSCCON_NOSC0_POSITION 0x00000008
#define _OSCCON_NOSC0_MASK 0x00000100
#define _OSCCON_NOSC0_LENGTH 0x00000001
#define _OSCCON_NOSC1_POSITION 0x00000009
#define _OSCCON_NOSC1_MASK 0x00000200
#define _OSCCON_NOSC1_LENGTH 0x00000001
#define _OSCCON_NOSC2_POSITION 0x0000000A
#define _OSCCON_NOSC2_MASK 0x00000400
#define _OSCCON_NOSC2_LENGTH 0x00000001
#define _OSCCON_COSC0_POSITION 0x0000000C
#define _OSCCON_COSC0_MASK 0x00001000
#define _OSCCON_COSC0_LENGTH 0x00000001
#define _OSCCON_COSC1_POSITION 0x0000000D
#define _OSCCON_COSC1_MASK 0x00002000
#define _OSCCON_COSC1_LENGTH 0x00000001
#define _OSCCON_COSC2_POSITION 0x0000000E
#define _OSCCON_COSC2_MASK 0x00004000
#define _OSCCON_COSC2_LENGTH 0x00000001
#define _OSCCON_PLLMULT0_POSITION 0x00000010
#define _OSCCON_PLLMULT0_MASK 0x00010000
#define _OSCCON_PLLMULT0_LENGTH 0x00000001
#define _OSCCON_PLLMULT1_POSITION 0x00000011
#define _OSCCON_PLLMULT1_MASK 0x00020000
#define _OSCCON_PLLMULT1_LENGTH 0x00000001
#define _OSCCON_PLLMULT2_POSITION 0x00000012
#define _OSCCON_PLLMULT2_MASK 0x00040000
#define _OSCCON_PLLMULT2_LENGTH 0x00000001
#define _OSCCON_PBDIV0_POSITION 0x00000013
#define _OSCCON_PBDIV0_MASK 0x00080000
#define _OSCCON_PBDIV0_LENGTH 0x00000001
#define _OSCCON_PBDIV1_POSITION 0x00000014
#define _OSCCON_PBDIV1_MASK 0x00100000
#define _OSCCON_PBDIV1_LENGTH 0x00000001
#define _OSCCON_FRCDIV0_POSITION 0x00000018
#define _OSCCON_FRCDIV0_MASK 0x01000000
#define _OSCCON_FRCDIV0_LENGTH 0x00000001
#define _OSCCON_FRCDIV1_POSITION 0x00000019
#define _OSCCON_FRCDIV1_MASK 0x02000000
#define _OSCCON_FRCDIV1_LENGTH 0x00000001
#define _OSCCON_FRCDIV2_POSITION 0x0000001A
#define _OSCCON_FRCDIV2_MASK 0x04000000
#define _OSCCON_FRCDIV2_LENGTH 0x00000001
#define _OSCCON_PLLODIV0_POSITION 0x0000001B
#define _OSCCON_PLLODIV0_MASK 0x08000000
#define _OSCCON_PLLODIV0_LENGTH 0x00000001
#define _OSCCON_PLLODIV1_POSITION 0x0000001C
#define _OSCCON_PLLODIV1_MASK 0x10000000
#define _OSCCON_PLLODIV1_LENGTH 0x00000001
#define _OSCCON_PLLODIV2_POSITION 0x0000001D
#define _OSCCON_PLLODIV2_MASK 0x20000000
#define _OSCCON_PLLODIV2_LENGTH 0x00000001
#define _OSCCON_w_POSITION 0x00000000
#define _OSCCON_w_MASK 0xFFFFFFFF
#define _OSCCON_w_LENGTH 0x00000020
#define _OSCTUN_TUN_POSITION 0x00000000
#define _OSCTUN_TUN_MASK 0x0000003F
#define _OSCTUN_TUN_LENGTH 0x00000006
#define _OSCTUN_TUN0_POSITION 0x00000000
#define _OSCTUN_TUN0_MASK 0x00000001
#define _OSCTUN_TUN0_LENGTH 0x00000001
#define _OSCTUN_TUN1_POSITION 0x00000001
#define _OSCTUN_TUN1_MASK 0x00000002
#define _OSCTUN_TUN1_LENGTH 0x00000001
#define _OSCTUN_TUN2_POSITION 0x00000002
#define _OSCTUN_TUN2_MASK 0x00000004
#define _OSCTUN_TUN2_LENGTH 0x00000001
#define _OSCTUN_TUN3_POSITION 0x00000003
#define _OSCTUN_TUN3_MASK 0x00000008
#define _OSCTUN_TUN3_LENGTH 0x00000001
#define _OSCTUN_TUN4_POSITION 0x00000004
#define _OSCTUN_TUN4_MASK 0x00000010
#define _OSCTUN_TUN4_LENGTH 0x00000001
#define _OSCTUN_TUN5_POSITION 0x00000005
#define _OSCTUN_TUN5_MASK 0x00000020
#define _OSCTUN_TUN5_LENGTH 0x00000001
#define _OSCTUN_w_POSITION 0x00000000
#define _OSCTUN_w_MASK 0xFFFFFFFF
#define _OSCTUN_w_LENGTH 0x00000020
#define _DDPCON_TROEN_POSITION 0x00000002
#define _DDPCON_TROEN_MASK 0x00000004
#define _DDPCON_TROEN_LENGTH 0x00000001
#define _DDPCON_JTAGEN_POSITION 0x00000003
#define _DDPCON_JTAGEN_MASK 0x00000008
#define _DDPCON_JTAGEN_LENGTH 0x00000001
#define _DEVID_DEVID_POSITION 0x00000000
#define _DEVID_DEVID_MASK 0x0FFFFFFF
#define _DEVID_DEVID_LENGTH 0x0000001C
#define _DEVID_VER_POSITION 0x0000001C
#define _DEVID_VER_MASK 0xF0000000
#define _DEVID_VER_LENGTH 0x00000004
#define _NVMCON_NVMOP_POSITION 0x00000000
#define _NVMCON_NVMOP_MASK 0x0000000F
#define _NVMCON_NVMOP_LENGTH 0x00000004
#define _NVMCON_LVDSTAT_POSITION 0x0000000B
#define _NVMCON_LVDSTAT_MASK 0x00000800
#define _NVMCON_LVDSTAT_LENGTH 0x00000001
#define _NVMCON_LVDERR_POSITION 0x0000000C
#define _NVMCON_LVDERR_MASK 0x00001000
#define _NVMCON_LVDERR_LENGTH 0x00000001
#define _NVMCON_WRERR_POSITION 0x0000000D
#define _NVMCON_WRERR_MASK 0x00002000
#define _NVMCON_WRERR_LENGTH 0x00000001
#define _NVMCON_WREN_POSITION 0x0000000E
#define _NVMCON_WREN_MASK 0x00004000
#define _NVMCON_WREN_LENGTH 0x00000001
#define _NVMCON_WR_POSITION 0x0000000F
#define _NVMCON_WR_MASK 0x00008000
#define _NVMCON_WR_LENGTH 0x00000001
#define _NVMCON_NVMOP0_POSITION 0x00000000
#define _NVMCON_NVMOP0_MASK 0x00000001
#define _NVMCON_NVMOP0_LENGTH 0x00000001
#define _NVMCON_NVMOP1_POSITION 0x00000001
#define _NVMCON_NVMOP1_MASK 0x00000002
#define _NVMCON_NVMOP1_LENGTH 0x00000001
#define _NVMCON_NVMOP2_POSITION 0x00000002
#define _NVMCON_NVMOP2_MASK 0x00000004
#define _NVMCON_NVMOP2_LENGTH 0x00000001
#define _NVMCON_NVMOP3_POSITION 0x00000003
#define _NVMCON_NVMOP3_MASK 0x00000008
#define _NVMCON_NVMOP3_LENGTH 0x00000001
#define _NVMCON_PROGOP_POSITION 0x00000000
#define _NVMCON_PROGOP_MASK 0x0000000F
#define _NVMCON_PROGOP_LENGTH 0x00000004
#define _NVMCON_PROGOP0_POSITION 0x00000000
#define _NVMCON_PROGOP0_MASK 0x00000001
#define _NVMCON_PROGOP0_LENGTH 0x00000001
#define _NVMCON_PROGOP1_POSITION 0x00000001
#define _NVMCON_PROGOP1_MASK 0x00000002
#define _NVMCON_PROGOP1_LENGTH 0x00000001
#define _NVMCON_PROGOP2_POSITION 0x00000002
#define _NVMCON_PROGOP2_MASK 0x00000004
#define _NVMCON_PROGOP2_LENGTH 0x00000001
#define _NVMCON_PROGOP3_POSITION 0x00000003
#define _NVMCON_PROGOP3_MASK 0x00000008
#define _NVMCON_PROGOP3_LENGTH 0x00000001
#define _NVMCON_w_POSITION 0x00000000
#define _NVMCON_w_MASK 0xFFFFFFFF
#define _NVMCON_w_LENGTH 0x00000020
#define _RCON_POR_POSITION 0x00000000
#define _RCON_POR_MASK 0x00000001
#define _RCON_POR_LENGTH 0x00000001
#define _RCON_BOR_POSITION 0x00000001
#define _RCON_BOR_MASK 0x00000002
#define _RCON_BOR_LENGTH 0x00000001
#define _RCON_IDLE_POSITION 0x00000002
#define _RCON_IDLE_MASK 0x00000004
#define _RCON_IDLE_LENGTH 0x00000001
#define _RCON_SLEEP_POSITION 0x00000003
#define _RCON_SLEEP_MASK 0x00000008
#define _RCON_SLEEP_LENGTH 0x00000001
#define _RCON_WDTO_POSITION 0x00000004
#define _RCON_WDTO_MASK 0x00000010
#define _RCON_WDTO_LENGTH 0x00000001
#define _RCON_SWR_POSITION 0x00000006
#define _RCON_SWR_MASK 0x00000040
#define _RCON_SWR_LENGTH 0x00000001
#define _RCON_EXTR_POSITION 0x00000007
#define _RCON_EXTR_MASK 0x00000080
#define _RCON_EXTR_LENGTH 0x00000001
#define _RCON_VREGS_POSITION 0x00000008
#define _RCON_VREGS_MASK 0x00000100
#define _RCON_VREGS_LENGTH 0x00000001
#define _RCON_CMR_POSITION 0x00000009
#define _RCON_CMR_MASK 0x00000200
#define _RCON_CMR_LENGTH 0x00000001
#define _RCON_w_POSITION 0x00000000
#define _RCON_w_MASK 0xFFFFFFFF
#define _RCON_w_LENGTH 0x00000020
#define _RSWRST_SWRST_POSITION 0x00000000
#define _RSWRST_SWRST_MASK 0x00000001
#define _RSWRST_SWRST_LENGTH 0x00000001
#define _RSWRST_w_POSITION 0x00000000
#define _RSWRST_w_MASK 0xFFFFFFFF
#define _RSWRST_w_LENGTH 0x00000020
#define __DDPSTAT_APIFUL_POSITION 0x00000001
#define __DDPSTAT_APIFUL_MASK 0x00000002
#define __DDPSTAT_APIFUL_LENGTH 0x00000001
#define __DDPSTAT_APOFUL_POSITION 0x00000002
#define __DDPSTAT_APOFUL_MASK 0x00000004
#define __DDPSTAT_APOFUL_LENGTH 0x00000001
#define __DDPSTAT_STRFUL_POSITION 0x00000003
#define __DDPSTAT_STRFUL_MASK 0x00000008
#define __DDPSTAT_STRFUL_LENGTH 0x00000001
#define __DDPSTAT_APIOV_POSITION 0x00000009
#define __DDPSTAT_APIOV_MASK 0x00000200
#define __DDPSTAT_APIOV_LENGTH 0x00000001
#define __DDPSTAT_APOOV_POSITION 0x0000000A
#define __DDPSTAT_APOOV_MASK 0x00000400
#define __DDPSTAT_APOOV_LENGTH 0x00000001
#define __DDPSTAT_STOV_POSITION 0x00000010
#define __DDPSTAT_STOV_MASK 0xFFFF0000
#define __DDPSTAT_STOV_LENGTH 0x00000010
#define _INTCON_INT0EP_POSITION 0x00000000
#define _INTCON_INT0EP_MASK 0x00000001
#define _INTCON_INT0EP_LENGTH 0x00000001
#define _INTCON_INT1EP_POSITION 0x00000001
#define _INTCON_INT1EP_MASK 0x00000002
#define _INTCON_INT1EP_LENGTH 0x00000001
#define _INTCON_INT2EP_POSITION 0x00000002
#define _INTCON_INT2EP_MASK 0x00000004
#define _INTCON_INT2EP_LENGTH 0x00000001
#define _INTCON_INT3EP_POSITION 0x00000003
#define _INTCON_INT3EP_MASK 0x00000008
#define _INTCON_INT3EP_LENGTH 0x00000001
#define _INTCON_INT4EP_POSITION 0x00000004
#define _INTCON_INT4EP_MASK 0x00000010
#define _INTCON_INT4EP_LENGTH 0x00000001
#define _INTCON_TPC_POSITION 0x00000008
#define _INTCON_TPC_MASK 0x00000700
#define _INTCON_TPC_LENGTH 0x00000003
#define _INTCON_MVEC_POSITION 0x0000000C
#define _INTCON_MVEC_MASK 0x00001000
#define _INTCON_MVEC_LENGTH 0x00000001
#define _INTCON_FRZ_POSITION 0x0000000E
#define _INTCON_FRZ_MASK 0x00004000
#define _INTCON_FRZ_LENGTH 0x00000001
#define _INTCON_SS0_POSITION 0x00000010
#define _INTCON_SS0_MASK 0x00010000
#define _INTCON_SS0_LENGTH 0x00000001
#define _INTSTAT_VEC_POSITION 0x00000000
#define _INTSTAT_VEC_MASK 0x0000003F
#define _INTSTAT_VEC_LENGTH 0x00000006
#define _INTSTAT_RIPL_POSITION 0x00000008
#define _INTSTAT_RIPL_MASK 0x00000700
#define _INTSTAT_RIPL_LENGTH 0x00000003
#define _INTSTAT_SRIPL_POSITION 0x00000008
#define _INTSTAT_SRIPL_MASK 0x00000700
#define _INTSTAT_SRIPL_LENGTH 0x00000003
#define _IFS0_CTIF_POSITION 0x00000000
#define _IFS0_CTIF_MASK 0x00000001
#define _IFS0_CTIF_LENGTH 0x00000001
#define _IFS0_CS0IF_POSITION 0x00000001
#define _IFS0_CS0IF_MASK 0x00000002
#define _IFS0_CS0IF_LENGTH 0x00000001
#define _IFS0_CS1IF_POSITION 0x00000002
#define _IFS0_CS1IF_MASK 0x00000004
#define _IFS0_CS1IF_LENGTH 0x00000001
#define _IFS0_INT0IF_POSITION 0x00000003
#define _IFS0_INT0IF_MASK 0x00000008
#define _IFS0_INT0IF_LENGTH 0x00000001
#define _IFS0_T1IF_POSITION 0x00000004
#define _IFS0_T1IF_MASK 0x00000010
#define _IFS0_T1IF_LENGTH 0x00000001
#define _IFS0_IC1IF_POSITION 0x00000005
#define _IFS0_IC1IF_MASK 0x00000020
#define _IFS0_IC1IF_LENGTH 0x00000001
#define _IFS0_OC1IF_POSITION 0x00000006
#define _IFS0_OC1IF_MASK 0x00000040
#define _IFS0_OC1IF_LENGTH 0x00000001
#define _IFS0_INT1IF_POSITION 0x00000007
#define _IFS0_INT1IF_MASK 0x00000080
#define _IFS0_INT1IF_LENGTH 0x00000001
#define _IFS0_T2IF_POSITION 0x00000008
#define _IFS0_T2IF_MASK 0x00000100
#define _IFS0_T2IF_LENGTH 0x00000001
#define _IFS0_IC2IF_POSITION 0x00000009
#define _IFS0_IC2IF_MASK 0x00000200
#define _IFS0_IC2IF_LENGTH 0x00000001
#define _IFS0_OC2IF_POSITION 0x0000000A
#define _IFS0_OC2IF_MASK 0x00000400
#define _IFS0_OC2IF_LENGTH 0x00000001
#define _IFS0_INT2IF_POSITION 0x0000000B
#define _IFS0_INT2IF_MASK 0x00000800
#define _IFS0_INT2IF_LENGTH 0x00000001
#define _IFS0_T3IF_POSITION 0x0000000C
#define _IFS0_T3IF_MASK 0x00001000
#define _IFS0_T3IF_LENGTH 0x00000001
#define _IFS0_IC3IF_POSITION 0x0000000D
#define _IFS0_IC3IF_MASK 0x00002000
#define _IFS0_IC3IF_LENGTH 0x00000001
#define _IFS0_OC3IF_POSITION 0x0000000E
#define _IFS0_OC3IF_MASK 0x00004000
#define _IFS0_OC3IF_LENGTH 0x00000001
#define _IFS0_INT3IF_POSITION 0x0000000F
#define _IFS0_INT3IF_MASK 0x00008000
#define _IFS0_INT3IF_LENGTH 0x00000001
#define _IFS0_T4IF_POSITION 0x00000010
#define _IFS0_T4IF_MASK 0x00010000
#define _IFS0_T4IF_LENGTH 0x00000001
#define _IFS0_IC4IF_POSITION 0x00000011
#define _IFS0_IC4IF_MASK 0x00020000
#define _IFS0_IC4IF_LENGTH 0x00000001
#define _IFS0_OC4IF_POSITION 0x00000012
#define _IFS0_OC4IF_MASK 0x00040000
#define _IFS0_OC4IF_LENGTH 0x00000001
#define _IFS0_INT4IF_POSITION 0x00000013
#define _IFS0_INT4IF_MASK 0x00080000
#define _IFS0_INT4IF_LENGTH 0x00000001
#define _IFS0_T5IF_POSITION 0x00000014
#define _IFS0_T5IF_MASK 0x00100000
#define _IFS0_T5IF_LENGTH 0x00000001
#define _IFS0_IC5IF_POSITION 0x00000015
#define _IFS0_IC5IF_MASK 0x00200000
#define _IFS0_IC5IF_LENGTH 0x00000001
#define _IFS0_OC5IF_POSITION 0x00000016
#define _IFS0_OC5IF_MASK 0x00400000
#define _IFS0_OC5IF_LENGTH 0x00000001
#define _IFS0_SPI1EIF_POSITION 0x00000017
#define _IFS0_SPI1EIF_MASK 0x00800000
#define _IFS0_SPI1EIF_LENGTH 0x00000001
#define _IFS0_SPI1TXIF_POSITION 0x00000018
#define _IFS0_SPI1TXIF_MASK 0x01000000
#define _IFS0_SPI1TXIF_LENGTH 0x00000001
#define _IFS0_SPI1RXIF_POSITION 0x00000019
#define _IFS0_SPI1RXIF_MASK 0x02000000
#define _IFS0_SPI1RXIF_LENGTH 0x00000001
#define _IFS0_U1EIF_POSITION 0x0000001A
#define _IFS0_U1EIF_MASK 0x04000000
#define _IFS0_U1EIF_LENGTH 0x00000001
#define _IFS0_U1RXIF_POSITION 0x0000001B
#define _IFS0_U1RXIF_MASK 0x08000000
#define _IFS0_U1RXIF_LENGTH 0x00000001
#define _IFS0_U1TXIF_POSITION 0x0000001C
#define _IFS0_U1TXIF_MASK 0x10000000
#define _IFS0_U1TXIF_LENGTH 0x00000001
#define _IFS0_I2C1BIF_POSITION 0x0000001D
#define _IFS0_I2C1BIF_MASK 0x20000000
#define _IFS0_I2C1BIF_LENGTH 0x00000001
#define _IFS0_I2C1SIF_POSITION 0x0000001E
#define _IFS0_I2C1SIF_MASK 0x40000000
#define _IFS0_I2C1SIF_LENGTH 0x00000001
#define _IFS0_I2C1MIF_POSITION 0x0000001F
#define _IFS0_I2C1MIF_MASK 0x80000000
#define _IFS0_I2C1MIF_LENGTH 0x00000001
#define _IFS1_CNIF_POSITION 0x00000000
#define _IFS1_CNIF_MASK 0x00000001
#define _IFS1_CNIF_LENGTH 0x00000001
#define _IFS1_AD1IF_POSITION 0x00000001
#define _IFS1_AD1IF_MASK 0x00000002
#define _IFS1_AD1IF_LENGTH 0x00000001
#define _IFS1_PMPIF_POSITION 0x00000002
#define _IFS1_PMPIF_MASK 0x00000004
#define _IFS1_PMPIF_LENGTH 0x00000001
#define _IFS1_CMP1IF_POSITION 0x00000003
#define _IFS1_CMP1IF_MASK 0x00000008
#define _IFS1_CMP1IF_LENGTH 0x00000001
#define _IFS1_CMP2IF_POSITION 0x00000004
#define _IFS1_CMP2IF_MASK 0x00000010
#define _IFS1_CMP2IF_LENGTH 0x00000001
#define _IFS1_SPI2EIF_POSITION 0x00000005
#define _IFS1_SPI2EIF_MASK 0x00000020
#define _IFS1_SPI2EIF_LENGTH 0x00000001
#define _IFS1_SPI2TXIF_POSITION 0x00000006
#define _IFS1_SPI2TXIF_MASK 0x00000040
#define _IFS1_SPI2TXIF_LENGTH 0x00000001
#define _IFS1_SPI2RXIF_POSITION 0x00000007
#define _IFS1_SPI2RXIF_MASK 0x00000080
#define _IFS1_SPI2RXIF_LENGTH 0x00000001
#define _IFS1_U2EIF_POSITION 0x00000008
#define _IFS1_U2EIF_MASK 0x00000100
#define _IFS1_U2EIF_LENGTH 0x00000001
#define _IFS1_U2RXIF_POSITION 0x00000009
#define _IFS1_U2RXIF_MASK 0x00000200
#define _IFS1_U2RXIF_LENGTH 0x00000001
#define _IFS1_U2TXIF_POSITION 0x0000000A
#define _IFS1_U2TXIF_MASK 0x00000400
#define _IFS1_U2TXIF_LENGTH 0x00000001
#define _IFS1_I2C2BIF_POSITION 0x0000000B
#define _IFS1_I2C2BIF_MASK 0x00000800
#define _IFS1_I2C2BIF_LENGTH 0x00000001
#define _IFS1_I2C2SIF_POSITION 0x0000000C
#define _IFS1_I2C2SIF_MASK 0x00001000
#define _IFS1_I2C2SIF_LENGTH 0x00000001
#define _IFS1_I2C2MIF_POSITION 0x0000000D
#define _IFS1_I2C2MIF_MASK 0x00002000
#define _IFS1_I2C2MIF_LENGTH 0x00000001
#define _IFS1_FSCMIF_POSITION 0x0000000E
#define _IFS1_FSCMIF_MASK 0x00004000
#define _IFS1_FSCMIF_LENGTH 0x00000001
#define _IFS1_RTCCIF_POSITION 0x0000000F
#define _IFS1_RTCCIF_MASK 0x00008000
#define _IFS1_RTCCIF_LENGTH 0x00000001
#define _IFS1_DMA0IF_POSITION 0x00000010
#define _IFS1_DMA0IF_MASK 0x00010000
#define _IFS1_DMA0IF_LENGTH 0x00000001
#define _IFS1_DMA1IF_POSITION 0x00000011
#define _IFS1_DMA1IF_MASK 0x00020000
#define _IFS1_DMA1IF_LENGTH 0x00000001
#define _IFS1_DMA2IF_POSITION 0x00000012
#define _IFS1_DMA2IF_MASK 0x00040000
#define _IFS1_DMA2IF_LENGTH 0x00000001
#define _IFS1_DMA3IF_POSITION 0x00000013
#define _IFS1_DMA3IF_MASK 0x00080000
#define _IFS1_DMA3IF_LENGTH 0x00000001
#define _IFS1_FCEIF_POSITION 0x00000018
#define _IFS1_FCEIF_MASK 0x01000000
#define _IFS1_FCEIF_LENGTH 0x00000001
#define _IEC0_CTIE_POSITION 0x00000000
#define _IEC0_CTIE_MASK 0x00000001
#define _IEC0_CTIE_LENGTH 0x00000001
#define _IEC0_CS0IE_POSITION 0x00000001
#define _IEC0_CS0IE_MASK 0x00000002
#define _IEC0_CS0IE_LENGTH 0x00000001
#define _IEC0_CS1IE_POSITION 0x00000002
#define _IEC0_CS1IE_MASK 0x00000004
#define _IEC0_CS1IE_LENGTH 0x00000001
#define _IEC0_INT0IE_POSITION 0x00000003
#define _IEC0_INT0IE_MASK 0x00000008
#define _IEC0_INT0IE_LENGTH 0x00000001
#define _IEC0_T1IE_POSITION 0x00000004
#define _IEC0_T1IE_MASK 0x00000010
#define _IEC0_T1IE_LENGTH 0x00000001
#define _IEC0_IC1IE_POSITION 0x00000005
#define _IEC0_IC1IE_MASK 0x00000020
#define _IEC0_IC1IE_LENGTH 0x00000001
#define _IEC0_OC1IE_POSITION 0x00000006
#define _IEC0_OC1IE_MASK 0x00000040
#define _IEC0_OC1IE_LENGTH 0x00000001
#define _IEC0_INT1IE_POSITION 0x00000007
#define _IEC0_INT1IE_MASK 0x00000080
#define _IEC0_INT1IE_LENGTH 0x00000001
#define _IEC0_T2IE_POSITION 0x00000008
#define _IEC0_T2IE_MASK 0x00000100
#define _IEC0_T2IE_LENGTH 0x00000001
#define _IEC0_IC2IE_POSITION 0x00000009
#define _IEC0_IC2IE_MASK 0x00000200
#define _IEC0_IC2IE_LENGTH 0x00000001
#define _IEC0_OC2IE_POSITION 0x0000000A
#define _IEC0_OC2IE_MASK 0x00000400
#define _IEC0_OC2IE_LENGTH 0x00000001
#define _IEC0_INT2IE_POSITION 0x0000000B
#define _IEC0_INT2IE_MASK 0x00000800
#define _IEC0_INT2IE_LENGTH 0x00000001
#define _IEC0_T3IE_POSITION 0x0000000C
#define _IEC0_T3IE_MASK 0x00001000
#define _IEC0_T3IE_LENGTH 0x00000001
#define _IEC0_IC3IE_POSITION 0x0000000D
#define _IEC0_IC3IE_MASK 0x00002000
#define _IEC0_IC3IE_LENGTH 0x00000001
#define _IEC0_OC3IE_POSITION 0x0000000E
#define _IEC0_OC3IE_MASK 0x00004000
#define _IEC0_OC3IE_LENGTH 0x00000001
#define _IEC0_INT3IE_POSITION 0x0000000F
#define _IEC0_INT3IE_MASK 0x00008000
#define _IEC0_INT3IE_LENGTH 0x00000001
#define _IEC0_T4IE_POSITION 0x00000010
#define _IEC0_T4IE_MASK 0x00010000
#define _IEC0_T4IE_LENGTH 0x00000001
#define _IEC0_IC4IE_POSITION 0x00000011
#define _IEC0_IC4IE_MASK 0x00020000
#define _IEC0_IC4IE_LENGTH 0x00000001
#define _IEC0_OC4IE_POSITION 0x00000012
#define _IEC0_OC4IE_MASK 0x00040000
#define _IEC0_OC4IE_LENGTH 0x00000001
#define _IEC0_INT4IE_POSITION 0x00000013
#define _IEC0_INT4IE_MASK 0x00080000
#define _IEC0_INT4IE_LENGTH 0x00000001
#define _IEC0_T5IE_POSITION 0x00000014
#define _IEC0_T5IE_MASK 0x00100000
#define _IEC0_T5IE_LENGTH 0x00000001
#define _IEC0_IC5IE_POSITION 0x00000015
#define _IEC0_IC5IE_MASK 0x00200000
#define _IEC0_IC5IE_LENGTH 0x00000001
#define _IEC0_OC5IE_POSITION 0x00000016
#define _IEC0_OC5IE_MASK 0x00400000
#define _IEC0_OC5IE_LENGTH 0x00000001
#define _IEC0_SPI1EIE_POSITION 0x00000017
#define _IEC0_SPI1EIE_MASK 0x00800000
#define _IEC0_SPI1EIE_LENGTH 0x00000001
#define _IEC0_SPI1TXIE_POSITION 0x00000018
#define _IEC0_SPI1TXIE_MASK 0x01000000
#define _IEC0_SPI1TXIE_LENGTH 0x00000001
#define _IEC0_SPI1RXIE_POSITION 0x00000019
#define _IEC0_SPI1RXIE_MASK 0x02000000
#define _IEC0_SPI1RXIE_LENGTH 0x00000001
#define _IEC0_U1EIE_POSITION 0x0000001A
#define _IEC0_U1EIE_MASK 0x04000000
#define _IEC0_U1EIE_LENGTH 0x00000001
#define _IEC0_U1RXIE_POSITION 0x0000001B
#define _IEC0_U1RXIE_MASK 0x08000000
#define _IEC0_U1RXIE_LENGTH 0x00000001
#define _IEC0_U1TXIE_POSITION 0x0000001C
#define _IEC0_U1TXIE_MASK 0x10000000
#define _IEC0_U1TXIE_LENGTH 0x00000001
#define _IEC0_I2C1BIE_POSITION 0x0000001D
#define _IEC0_I2C1BIE_MASK 0x20000000
#define _IEC0_I2C1BIE_LENGTH 0x00000001
#define _IEC0_I2C1SIE_POSITION 0x0000001E
#define _IEC0_I2C1SIE_MASK 0x40000000
#define _IEC0_I2C1SIE_LENGTH 0x00000001
#define _IEC0_I2C1MIE_POSITION 0x0000001F
#define _IEC0_I2C1MIE_MASK 0x80000000
#define _IEC0_I2C1MIE_LENGTH 0x00000001
#define _IEC1_CNIE_POSITION 0x00000000
#define _IEC1_CNIE_MASK 0x00000001
#define _IEC1_CNIE_LENGTH 0x00000001
#define _IEC1_AD1IE_POSITION 0x00000001
#define _IEC1_AD1IE_MASK 0x00000002
#define _IEC1_AD1IE_LENGTH 0x00000001
#define _IEC1_PMPIE_POSITION 0x00000002
#define _IEC1_PMPIE_MASK 0x00000004
#define _IEC1_PMPIE_LENGTH 0x00000001
#define _IEC1_CMP1IE_POSITION 0x00000003
#define _IEC1_CMP1IE_MASK 0x00000008
#define _IEC1_CMP1IE_LENGTH 0x00000001
#define _IEC1_CMP2IE_POSITION 0x00000004
#define _IEC1_CMP2IE_MASK 0x00000010
#define _IEC1_CMP2IE_LENGTH 0x00000001
#define _IEC1_SPI2EIE_POSITION 0x00000005
#define _IEC1_SPI2EIE_MASK 0x00000020
#define _IEC1_SPI2EIE_LENGTH 0x00000001
#define _IEC1_SPI2TXIE_POSITION 0x00000006
#define _IEC1_SPI2TXIE_MASK 0x00000040
#define _IEC1_SPI2TXIE_LENGTH 0x00000001
#define _IEC1_SPI2RXIE_POSITION 0x00000007
#define _IEC1_SPI2RXIE_MASK 0x00000080
#define _IEC1_SPI2RXIE_LENGTH 0x00000001
#define _IEC1_U2EIE_POSITION 0x00000008
#define _IEC1_U2EIE_MASK 0x00000100
#define _IEC1_U2EIE_LENGTH 0x00000001
#define _IEC1_U2RXIE_POSITION 0x00000009
#define _IEC1_U2RXIE_MASK 0x00000200
#define _IEC1_U2RXIE_LENGTH 0x00000001
#define _IEC1_U2TXIE_POSITION 0x0000000A
#define _IEC1_U2TXIE_MASK 0x00000400
#define _IEC1_U2TXIE_LENGTH 0x00000001
#define _IEC1_I2C2BIE_POSITION 0x0000000B
#define _IEC1_I2C2BIE_MASK 0x00000800
#define _IEC1_I2C2BIE_LENGTH 0x00000001
#define _IEC1_I2C2SIE_POSITION 0x0000000C
#define _IEC1_I2C2SIE_MASK 0x00001000
#define _IEC1_I2C2SIE_LENGTH 0x00000001
#define _IEC1_I2C2MIE_POSITION 0x0000000D
#define _IEC1_I2C2MIE_MASK 0x00002000
#define _IEC1_I2C2MIE_LENGTH 0x00000001
#define _IEC1_FSCMIE_POSITION 0x0000000E
#define _IEC1_FSCMIE_MASK 0x00004000
#define _IEC1_FSCMIE_LENGTH 0x00000001
#define _IEC1_RTCCIE_POSITION 0x0000000F
#define _IEC1_RTCCIE_MASK 0x00008000
#define _IEC1_RTCCIE_LENGTH 0x00000001
#define _IEC1_DMA0IE_POSITION 0x00000010
#define _IEC1_DMA0IE_MASK 0x00010000
#define _IEC1_DMA0IE_LENGTH 0x00000001
#define _IEC1_DMA1IE_POSITION 0x00000011
#define _IEC1_DMA1IE_MASK 0x00020000
#define _IEC1_DMA1IE_LENGTH 0x00000001
#define _IEC1_DMA2IE_POSITION 0x00000012
#define _IEC1_DMA2IE_MASK 0x00040000
#define _IEC1_DMA2IE_LENGTH 0x00000001
#define _IEC1_DMA3IE_POSITION 0x00000013
#define _IEC1_DMA3IE_MASK 0x00080000
#define _IEC1_DMA3IE_LENGTH 0x00000001
#define _IEC1_FCEIE_POSITION 0x00000018
#define _IEC1_FCEIE_MASK 0x01000000
#define _IEC1_FCEIE_LENGTH 0x00000001
#define _IPC0_CTIS_POSITION 0x00000000
#define _IPC0_CTIS_MASK 0x00000003
#define _IPC0_CTIS_LENGTH 0x00000002
#define _IPC0_CTIP_POSITION 0x00000002
#define _IPC0_CTIP_MASK 0x0000001C
#define _IPC0_CTIP_LENGTH 0x00000003
#define _IPC0_CS0IS_POSITION 0x00000008
#define _IPC0_CS0IS_MASK 0x00000300
#define _IPC0_CS0IS_LENGTH 0x00000002
#define _IPC0_CS0IP_POSITION 0x0000000A
#define _IPC0_CS0IP_MASK 0x00001C00
#define _IPC0_CS0IP_LENGTH 0x00000003
#define _IPC0_CS1IS_POSITION 0x00000010
#define _IPC0_CS1IS_MASK 0x00030000
#define _IPC0_CS1IS_LENGTH 0x00000002
#define _IPC0_CS1IP_POSITION 0x00000012
#define _IPC0_CS1IP_MASK 0x001C0000
#define _IPC0_CS1IP_LENGTH 0x00000003
#define _IPC0_INT0IS_POSITION 0x00000018
#define _IPC0_INT0IS_MASK 0x03000000
#define _IPC0_INT0IS_LENGTH 0x00000002
#define _IPC0_INT0IP_POSITION 0x0000001A
#define _IPC0_INT0IP_MASK 0x1C000000
#define _IPC0_INT0IP_LENGTH 0x00000003
#define _IPC1_T1IS_POSITION 0x00000000
#define _IPC1_T1IS_MASK 0x00000003
#define _IPC1_T1IS_LENGTH 0x00000002
#define _IPC1_T1IP_POSITION 0x00000002
#define _IPC1_T1IP_MASK 0x0000001C
#define _IPC1_T1IP_LENGTH 0x00000003
#define _IPC1_IC1IS_POSITION 0x00000008
#define _IPC1_IC1IS_MASK 0x00000300
#define _IPC1_IC1IS_LENGTH 0x00000002
#define _IPC1_IC1IP_POSITION 0x0000000A
#define _IPC1_IC1IP_MASK 0x00001C00
#define _IPC1_IC1IP_LENGTH 0x00000003
#define _IPC1_OC1IS_POSITION 0x00000010
#define _IPC1_OC1IS_MASK 0x00030000
#define _IPC1_OC1IS_LENGTH 0x00000002
#define _IPC1_OC1IP_POSITION 0x00000012
#define _IPC1_OC1IP_MASK 0x001C0000
#define _IPC1_OC1IP_LENGTH 0x00000003
#define _IPC1_INT1IS_POSITION 0x00000018
#define _IPC1_INT1IS_MASK 0x03000000
#define _IPC1_INT1IS_LENGTH 0x00000002
#define _IPC1_INT1IP_POSITION 0x0000001A
#define _IPC1_INT1IP_MASK 0x1C000000
#define _IPC1_INT1IP_LENGTH 0x00000003
#define _IPC2_T2IS_POSITION 0x00000000
#define _IPC2_T2IS_MASK 0x00000003
#define _IPC2_T2IS_LENGTH 0x00000002
#define _IPC2_T2IP_POSITION 0x00000002
#define _IPC2_T2IP_MASK 0x0000001C
#define _IPC2_T2IP_LENGTH 0x00000003
#define _IPC2_IC2IS_POSITION 0x00000008
#define _IPC2_IC2IS_MASK 0x00000300
#define _IPC2_IC2IS_LENGTH 0x00000002
#define _IPC2_IC2IP_POSITION 0x0000000A
#define _IPC2_IC2IP_MASK 0x00001C00
#define _IPC2_IC2IP_LENGTH 0x00000003
#define _IPC2_OC2IS_POSITION 0x00000010
#define _IPC2_OC2IS_MASK 0x00030000
#define _IPC2_OC2IS_LENGTH 0x00000002
#define _IPC2_OC2IP_POSITION 0x00000012
#define _IPC2_OC2IP_MASK 0x001C0000
#define _IPC2_OC2IP_LENGTH 0x00000003
#define _IPC2_INT2IS_POSITION 0x00000018
#define _IPC2_INT2IS_MASK 0x03000000
#define _IPC2_INT2IS_LENGTH 0x00000002
#define _IPC2_INT2IP_POSITION 0x0000001A
#define _IPC2_INT2IP_MASK 0x1C000000
#define _IPC2_INT2IP_LENGTH 0x00000003
#define _IPC3_T3IS_POSITION 0x00000000
#define _IPC3_T3IS_MASK 0x00000003
#define _IPC3_T3IS_LENGTH 0x00000002
#define _IPC3_T3IP_POSITION 0x00000002
#define _IPC3_T3IP_MASK 0x0000001C
#define _IPC3_T3IP_LENGTH 0x00000003
#define _IPC3_IC3IS_POSITION 0x00000008
#define _IPC3_IC3IS_MASK 0x00000300
#define _IPC3_IC3IS_LENGTH 0x00000002
#define _IPC3_IC3IP_POSITION 0x0000000A
#define _IPC3_IC3IP_MASK 0x00001C00
#define _IPC3_IC3IP_LENGTH 0x00000003
#define _IPC3_OC3IS_POSITION 0x00000010
#define _IPC3_OC3IS_MASK 0x00030000
#define _IPC3_OC3IS_LENGTH 0x00000002
#define _IPC3_OC3IP_POSITION 0x00000012
#define _IPC3_OC3IP_MASK 0x001C0000
#define _IPC3_OC3IP_LENGTH 0x00000003
#define _IPC3_INT3IS_POSITION 0x00000018
#define _IPC3_INT3IS_MASK 0x03000000
#define _IPC3_INT3IS_LENGTH 0x00000002
#define _IPC3_INT3IP_POSITION 0x0000001A
#define _IPC3_INT3IP_MASK 0x1C000000
#define _IPC3_INT3IP_LENGTH 0x00000003
#define _IPC4_T4IS_POSITION 0x00000000
#define _IPC4_T4IS_MASK 0x00000003
#define _IPC4_T4IS_LENGTH 0x00000002
#define _IPC4_T4IP_POSITION 0x00000002
#define _IPC4_T4IP_MASK 0x0000001C
#define _IPC4_T4IP_LENGTH 0x00000003
#define _IPC4_IC4IS_POSITION 0x00000008
#define _IPC4_IC4IS_MASK 0x00000300
#define _IPC4_IC4IS_LENGTH 0x00000002
#define _IPC4_IC4IP_POSITION 0x0000000A
#define _IPC4_IC4IP_MASK 0x00001C00
#define _IPC4_IC4IP_LENGTH 0x00000003
#define _IPC4_OC4IS_POSITION 0x00000010
#define _IPC4_OC4IS_MASK 0x00030000
#define _IPC4_OC4IS_LENGTH 0x00000002
#define _IPC4_OC4IP_POSITION 0x00000012
#define _IPC4_OC4IP_MASK 0x001C0000
#define _IPC4_OC4IP_LENGTH 0x00000003
#define _IPC4_INT4IS_POSITION 0x00000018
#define _IPC4_INT4IS_MASK 0x03000000
#define _IPC4_INT4IS_LENGTH 0x00000002
#define _IPC4_INT4IP_POSITION 0x0000001A
#define _IPC4_INT4IP_MASK 0x1C000000
#define _IPC4_INT4IP_LENGTH 0x00000003
#define _IPC5_T5IS_POSITION 0x00000000
#define _IPC5_T5IS_MASK 0x00000003
#define _IPC5_T5IS_LENGTH 0x00000002
#define _IPC5_T5IP_POSITION 0x00000002
#define _IPC5_T5IP_MASK 0x0000001C
#define _IPC5_T5IP_LENGTH 0x00000003
#define _IPC5_IC5IS_POSITION 0x00000008
#define _IPC5_IC5IS_MASK 0x00000300
#define _IPC5_IC5IS_LENGTH 0x00000002
#define _IPC5_IC5IP_POSITION 0x0000000A
#define _IPC5_IC5IP_MASK 0x00001C00
#define _IPC5_IC5IP_LENGTH 0x00000003
#define _IPC5_OC5IS_POSITION 0x00000010
#define _IPC5_OC5IS_MASK 0x00030000
#define _IPC5_OC5IS_LENGTH 0x00000002
#define _IPC5_OC5IP_POSITION 0x00000012
#define _IPC5_OC5IP_MASK 0x001C0000
#define _IPC5_OC5IP_LENGTH 0x00000003
#define _IPC5_SPI1IS_POSITION 0x00000018
#define _IPC5_SPI1IS_MASK 0x03000000
#define _IPC5_SPI1IS_LENGTH 0x00000002
#define _IPC5_SPI1IP_POSITION 0x0000001A
#define _IPC5_SPI1IP_MASK 0x1C000000
#define _IPC5_SPI1IP_LENGTH 0x00000003
#define _IPC6_U1IS_POSITION 0x00000000
#define _IPC6_U1IS_MASK 0x00000003
#define _IPC6_U1IS_LENGTH 0x00000002
#define _IPC6_U1IP_POSITION 0x00000002
#define _IPC6_U1IP_MASK 0x0000001C
#define _IPC6_U1IP_LENGTH 0x00000003
#define _IPC6_I2C1IS_POSITION 0x00000008
#define _IPC6_I2C1IS_MASK 0x00000300
#define _IPC6_I2C1IS_LENGTH 0x00000002
#define _IPC6_I2C1IP_POSITION 0x0000000A
#define _IPC6_I2C1IP_MASK 0x00001C00
#define _IPC6_I2C1IP_LENGTH 0x00000003
#define _IPC6_CNIS_POSITION 0x00000010
#define _IPC6_CNIS_MASK 0x00030000
#define _IPC6_CNIS_LENGTH 0x00000002
#define _IPC6_CNIP_POSITION 0x00000012
#define _IPC6_CNIP_MASK 0x001C0000
#define _IPC6_CNIP_LENGTH 0x00000003
#define _IPC6_AD1IS_POSITION 0x00000018
#define _IPC6_AD1IS_MASK 0x03000000
#define _IPC6_AD1IS_LENGTH 0x00000002
#define _IPC6_AD1IP_POSITION 0x0000001A
#define _IPC6_AD1IP_MASK 0x1C000000
#define _IPC6_AD1IP_LENGTH 0x00000003
#define _IPC7_PMPIS_POSITION 0x00000000
#define _IPC7_PMPIS_MASK 0x00000003
#define _IPC7_PMPIS_LENGTH 0x00000002
#define _IPC7_PMPIP_POSITION 0x00000002
#define _IPC7_PMPIP_MASK 0x0000001C
#define _IPC7_PMPIP_LENGTH 0x00000003
#define _IPC7_CMP1IS_POSITION 0x00000008
#define _IPC7_CMP1IS_MASK 0x00000300
#define _IPC7_CMP1IS_LENGTH 0x00000002
#define _IPC7_CMP1IP_POSITION 0x0000000A
#define _IPC7_CMP1IP_MASK 0x00001C00
#define _IPC7_CMP1IP_LENGTH 0x00000003
#define _IPC7_CMP2IS_POSITION 0x00000010
#define _IPC7_CMP2IS_MASK 0x00030000
#define _IPC7_CMP2IS_LENGTH 0x00000002
#define _IPC7_CMP2IP_POSITION 0x00000012
#define _IPC7_CMP2IP_MASK 0x001C0000
#define _IPC7_CMP2IP_LENGTH 0x00000003
#define _IPC7_SPI2IS_POSITION 0x00000018
#define _IPC7_SPI2IS_MASK 0x03000000
#define _IPC7_SPI2IS_LENGTH 0x00000002
#define _IPC7_SPI2IP_POSITION 0x0000001A
#define _IPC7_SPI2IP_MASK 0x1C000000
#define _IPC7_SPI2IP_LENGTH 0x00000003
#define _IPC8_U2IS_POSITION 0x00000000
#define _IPC8_U2IS_MASK 0x00000003
#define _IPC8_U2IS_LENGTH 0x00000002
#define _IPC8_U2IP_POSITION 0x00000002
#define _IPC8_U2IP_MASK 0x0000001C
#define _IPC8_U2IP_LENGTH 0x00000003
#define _IPC8_I2C2IS_POSITION 0x00000008
#define _IPC8_I2C2IS_MASK 0x00000300
#define _IPC8_I2C2IS_LENGTH 0x00000002
#define _IPC8_I2C2IP_POSITION 0x0000000A
#define _IPC8_I2C2IP_MASK 0x00001C00
#define _IPC8_I2C2IP_LENGTH 0x00000003
#define _IPC8_FSCMIS_POSITION 0x00000010
#define _IPC8_FSCMIS_MASK 0x00030000
#define _IPC8_FSCMIS_LENGTH 0x00000002
#define _IPC8_FSCMIP_POSITION 0x00000012
#define _IPC8_FSCMIP_MASK 0x001C0000
#define _IPC8_FSCMIP_LENGTH 0x00000003
#define _IPC8_RTCCIS_POSITION 0x00000018
#define _IPC8_RTCCIS_MASK 0x03000000
#define _IPC8_RTCCIS_LENGTH 0x00000002
#define _IPC8_RTCCIP_POSITION 0x0000001A
#define _IPC8_RTCCIP_MASK 0x1C000000
#define _IPC8_RTCCIP_LENGTH 0x00000003
#define _IPC9_DMA0IS_POSITION 0x00000000
#define _IPC9_DMA0IS_MASK 0x00000003
#define _IPC9_DMA0IS_LENGTH 0x00000002
#define _IPC9_DMA0IP_POSITION 0x00000002
#define _IPC9_DMA0IP_MASK 0x0000001C
#define _IPC9_DMA0IP_LENGTH 0x00000003
#define _IPC9_DMA1IS_POSITION 0x00000008
#define _IPC9_DMA1IS_MASK 0x00000300
#define _IPC9_DMA1IS_LENGTH 0x00000002
#define _IPC9_DMA1IP_POSITION 0x0000000A
#define _IPC9_DMA1IP_MASK 0x00001C00
#define _IPC9_DMA1IP_LENGTH 0x00000003
#define _IPC9_DMA2IS_POSITION 0x00000010
#define _IPC9_DMA2IS_MASK 0x00030000
#define _IPC9_DMA2IS_LENGTH 0x00000002
#define _IPC9_DMA2IP_POSITION 0x00000012
#define _IPC9_DMA2IP_MASK 0x001C0000
#define _IPC9_DMA2IP_LENGTH 0x00000003
#define _IPC9_DMA3IS_POSITION 0x00000018
#define _IPC9_DMA3IS_MASK 0x03000000
#define _IPC9_DMA3IS_LENGTH 0x00000002
#define _IPC9_DMA3IP_POSITION 0x0000001A
#define _IPC9_DMA3IP_MASK 0x1C000000
#define _IPC9_DMA3IP_LENGTH 0x00000003
#define _IPC11_FCEIS_POSITION 0x00000000
#define _IPC11_FCEIS_MASK 0x00000003
#define _IPC11_FCEIS_LENGTH 0x00000002
#define _IPC11_FCEIP_POSITION 0x00000002
#define _IPC11_FCEIP_MASK 0x0000001C
#define _IPC11_FCEIP_LENGTH 0x00000003
#define _BMXCON_BMXARB_POSITION 0x00000000
#define _BMXCON_BMXARB_MASK 0x00000007
#define _BMXCON_BMXARB_LENGTH 0x00000003
#define _BMXCON_BMXWSDRM_POSITION 0x00000006
#define _BMXCON_BMXWSDRM_MASK 0x00000040
#define _BMXCON_BMXWSDRM_LENGTH 0x00000001
#define _BMXCON_BMXERRIS_POSITION 0x00000010
#define _BMXCON_BMXERRIS_MASK 0x00010000
#define _BMXCON_BMXERRIS_LENGTH 0x00000001
#define _BMXCON_BMXERRDS_POSITION 0x00000011
#define _BMXCON_BMXERRDS_MASK 0x00020000
#define _BMXCON_BMXERRDS_LENGTH 0x00000001
#define _BMXCON_BMXERRDMA_POSITION 0x00000012
#define _BMXCON_BMXERRDMA_MASK 0x00040000
#define _BMXCON_BMXERRDMA_LENGTH 0x00000001
#define _BMXCON_BMXERRICD_POSITION 0x00000013
#define _BMXCON_BMXERRICD_MASK 0x00080000
#define _BMXCON_BMXERRICD_LENGTH 0x00000001
#define _BMXCON_BMXERRIXI_POSITION 0x00000014
#define _BMXCON_BMXERRIXI_MASK 0x00100000
#define _BMXCON_BMXERRIXI_LENGTH 0x00000001
#define _BMXCON_BMXCHEDMA_POSITION 0x0000001A
#define _BMXCON_BMXCHEDMA_MASK 0x04000000
#define _BMXCON_BMXCHEDMA_LENGTH 0x00000001
#define _BMXCON_w_POSITION 0x00000000
#define _BMXCON_w_MASK 0xFFFFFFFF
#define _BMXCON_w_LENGTH 0x00000020
#define _DMACON_SUSPEND_POSITION 0x0000000C
#define _DMACON_SUSPEND_MASK 0x00001000
#define _DMACON_SUSPEND_LENGTH 0x00000001
#define _DMACON_SIDL_POSITION 0x0000000D
#define _DMACON_SIDL_MASK 0x00002000
#define _DMACON_SIDL_LENGTH 0x00000001
#define _DMACON_ON_POSITION 0x0000000F
#define _DMACON_ON_MASK 0x00008000
#define _DMACON_ON_LENGTH 0x00000001
#define _DMACON_w_POSITION 0x00000000
#define _DMACON_w_MASK 0xFFFFFFFF
#define _DMACON_w_LENGTH 0x00000020
#define _DMASTAT_DMACH_POSITION 0x00000000
#define _DMASTAT_DMACH_MASK 0x00000003
#define _DMASTAT_DMACH_LENGTH 0x00000002
#define _DMASTAT_RDWR_POSITION 0x00000003
#define _DMASTAT_RDWR_MASK 0x00000008
#define _DMASTAT_RDWR_LENGTH 0x00000001
#define _DMASTAT_w_POSITION 0x00000000
#define _DMASTAT_w_MASK 0xFFFFFFFF
#define _DMASTAT_w_LENGTH 0x00000020
#define _DCRCCON_CRCCH_POSITION 0x00000000
#define _DCRCCON_CRCCH_MASK 0x00000003
#define _DCRCCON_CRCCH_LENGTH 0x00000002
#define _DCRCCON_CRCTYP_POSITION 0x00000005
#define _DCRCCON_CRCTYP_MASK 0x00000020
#define _DCRCCON_CRCTYP_LENGTH 0x00000001
#define _DCRCCON_CRCAPP_POSITION 0x00000006
#define _DCRCCON_CRCAPP_MASK 0x00000040
#define _DCRCCON_CRCAPP_LENGTH 0x00000001
#define _DCRCCON_CRCEN_POSITION 0x00000007
#define _DCRCCON_CRCEN_MASK 0x00000080
#define _DCRCCON_CRCEN_LENGTH 0x00000001
#define _DCRCCON_PLEN_POSITION 0x00000008
#define _DCRCCON_PLEN_MASK 0x00000F00
#define _DCRCCON_PLEN_LENGTH 0x00000004
#define _DCRCCON_BITO_POSITION 0x00000018
#define _DCRCCON_BITO_MASK 0x01000000
#define _DCRCCON_BITO_LENGTH 0x00000001
#define _DCRCCON_WBO_POSITION 0x0000001B
#define _DCRCCON_WBO_MASK 0x08000000
#define _DCRCCON_WBO_LENGTH 0x00000001
#define _DCRCCON_BYTO_POSITION 0x0000001C
#define _DCRCCON_BYTO_MASK 0x30000000
#define _DCRCCON_BYTO_LENGTH 0x00000002
#define _DCRCCON_w_POSITION 0x00000000
#define _DCRCCON_w_MASK 0xFFFFFFFF
#define _DCRCCON_w_LENGTH 0x00000020
#define _DCH0CON_CHPRI_POSITION 0x00000000
#define _DCH0CON_CHPRI_MASK 0x00000003
#define _DCH0CON_CHPRI_LENGTH 0x00000002
#define _DCH0CON_CHEDET_POSITION 0x00000002
#define _DCH0CON_CHEDET_MASK 0x00000004
#define _DCH0CON_CHEDET_LENGTH 0x00000001
#define _DCH0CON_CHAEN_POSITION 0x00000004
#define _DCH0CON_CHAEN_MASK 0x00000010
#define _DCH0CON_CHAEN_LENGTH 0x00000001
#define _DCH0CON_CHCHN_POSITION 0x00000005
#define _DCH0CON_CHCHN_MASK 0x00000020
#define _DCH0CON_CHCHN_LENGTH 0x00000001
#define _DCH0CON_CHAED_POSITION 0x00000006
#define _DCH0CON_CHAED_MASK 0x00000040
#define _DCH0CON_CHAED_LENGTH 0x00000001
#define _DCH0CON_CHEN_POSITION 0x00000007
#define _DCH0CON_CHEN_MASK 0x00000080
#define _DCH0CON_CHEN_LENGTH 0x00000001
#define _DCH0CON_CHCHNS_POSITION 0x00000008
#define _DCH0CON_CHCHNS_MASK 0x00000100
#define _DCH0CON_CHCHNS_LENGTH 0x00000001
#define _DCH0CON_w_POSITION 0x00000000
#define _DCH0CON_w_MASK 0xFFFFFFFF
#define _DCH0CON_w_LENGTH 0x00000020
#define _DCH0ECON_AIRQEN_POSITION 0x00000003
#define _DCH0ECON_AIRQEN_MASK 0x00000008
#define _DCH0ECON_AIRQEN_LENGTH 0x00000001
#define _DCH0ECON_SIRQEN_POSITION 0x00000004
#define _DCH0ECON_SIRQEN_MASK 0x00000010
#define _DCH0ECON_SIRQEN_LENGTH 0x00000001
#define _DCH0ECON_PATEN_POSITION 0x00000005
#define _DCH0ECON_PATEN_MASK 0x00000020
#define _DCH0ECON_PATEN_LENGTH 0x00000001
#define _DCH0ECON_CABORT_POSITION 0x00000006
#define _DCH0ECON_CABORT_MASK 0x00000040
#define _DCH0ECON_CABORT_LENGTH 0x00000001
#define _DCH0ECON_CFORCE_POSITION 0x00000007
#define _DCH0ECON_CFORCE_MASK 0x00000080
#define _DCH0ECON_CFORCE_LENGTH 0x00000001
#define _DCH0ECON_CHSIRQ_POSITION 0x00000008
#define _DCH0ECON_CHSIRQ_MASK 0x0000FF00
#define _DCH0ECON_CHSIRQ_LENGTH 0x00000008
#define _DCH0ECON_CHAIRQ_POSITION 0x00000010
#define _DCH0ECON_CHAIRQ_MASK 0x00FF0000
#define _DCH0ECON_CHAIRQ_LENGTH 0x00000008
#define _DCH0ECON_w_POSITION 0x00000000
#define _DCH0ECON_w_MASK 0xFFFFFFFF
#define _DCH0ECON_w_LENGTH 0x00000020
#define _DCH0INT_CHERIF_POSITION 0x00000000
#define _DCH0INT_CHERIF_MASK 0x00000001
#define _DCH0INT_CHERIF_LENGTH 0x00000001
#define _DCH0INT_CHTAIF_POSITION 0x00000001
#define _DCH0INT_CHTAIF_MASK 0x00000002
#define _DCH0INT_CHTAIF_LENGTH 0x00000001
#define _DCH0INT_CHCCIF_POSITION 0x00000002
#define _DCH0INT_CHCCIF_MASK 0x00000004
#define _DCH0INT_CHCCIF_LENGTH 0x00000001
#define _DCH0INT_CHBCIF_POSITION 0x00000003
#define _DCH0INT_CHBCIF_MASK 0x00000008
#define _DCH0INT_CHBCIF_LENGTH 0x00000001
#define _DCH0INT_CHDHIF_POSITION 0x00000004
#define _DCH0INT_CHDHIF_MASK 0x00000010
#define _DCH0INT_CHDHIF_LENGTH 0x00000001
#define _DCH0INT_CHDDIF_POSITION 0x00000005
#define _DCH0INT_CHDDIF_MASK 0x00000020
#define _DCH0INT_CHDDIF_LENGTH 0x00000001
#define _DCH0INT_CHSHIF_POSITION 0x00000006
#define _DCH0INT_CHSHIF_MASK 0x00000040
#define _DCH0INT_CHSHIF_LENGTH 0x00000001
#define _DCH0INT_CHSDIF_POSITION 0x00000007
#define _DCH0INT_CHSDIF_MASK 0x00000080
#define _DCH0INT_CHSDIF_LENGTH 0x00000001
#define _DCH0INT_CHERIE_POSITION 0x00000010
#define _DCH0INT_CHERIE_MASK 0x00010000
#define _DCH0INT_CHERIE_LENGTH 0x00000001
#define _DCH0INT_CHTAIE_POSITION 0x00000011
#define _DCH0INT_CHTAIE_MASK 0x00020000
#define _DCH0INT_CHTAIE_LENGTH 0x00000001
#define _DCH0INT_CHCCIE_POSITION 0x00000012
#define _DCH0INT_CHCCIE_MASK 0x00040000
#define _DCH0INT_CHCCIE_LENGTH 0x00000001
#define _DCH0INT_CHBCIE_POSITION 0x00000013
#define _DCH0INT_CHBCIE_MASK 0x00080000
#define _DCH0INT_CHBCIE_LENGTH 0x00000001
#define _DCH0INT_CHDHIE_POSITION 0x00000014
#define _DCH0INT_CHDHIE_MASK 0x00100000
#define _DCH0INT_CHDHIE_LENGTH 0x00000001
#define _DCH0INT_CHDDIE_POSITION 0x00000015
#define _DCH0INT_CHDDIE_MASK 0x00200000
#define _DCH0INT_CHDDIE_LENGTH 0x00000001
#define _DCH0INT_CHSHIE_POSITION 0x00000016
#define _DCH0INT_CHSHIE_MASK 0x00400000
#define _DCH0INT_CHSHIE_LENGTH 0x00000001
#define _DCH0INT_CHSDIE_POSITION 0x00000017
#define _DCH0INT_CHSDIE_MASK 0x00800000
#define _DCH0INT_CHSDIE_LENGTH 0x00000001
#define _DCH0INT_w_POSITION 0x00000000
#define _DCH0INT_w_MASK 0xFFFFFFFF
#define _DCH0INT_w_LENGTH 0x00000020
#define _DCH1CON_CHPRI_POSITION 0x00000000
#define _DCH1CON_CHPRI_MASK 0x00000003
#define _DCH1CON_CHPRI_LENGTH 0x00000002
#define _DCH1CON_CHEDET_POSITION 0x00000002
#define _DCH1CON_CHEDET_MASK 0x00000004
#define _DCH1CON_CHEDET_LENGTH 0x00000001
#define _DCH1CON_CHAEN_POSITION 0x00000004
#define _DCH1CON_CHAEN_MASK 0x00000010
#define _DCH1CON_CHAEN_LENGTH 0x00000001
#define _DCH1CON_CHCHN_POSITION 0x00000005
#define _DCH1CON_CHCHN_MASK 0x00000020
#define _DCH1CON_CHCHN_LENGTH 0x00000001
#define _DCH1CON_CHAED_POSITION 0x00000006
#define _DCH1CON_CHAED_MASK 0x00000040
#define _DCH1CON_CHAED_LENGTH 0x00000001
#define _DCH1CON_CHEN_POSITION 0x00000007
#define _DCH1CON_CHEN_MASK 0x00000080
#define _DCH1CON_CHEN_LENGTH 0x00000001
#define _DCH1CON_CHCHNS_POSITION 0x00000008
#define _DCH1CON_CHCHNS_MASK 0x00000100
#define _DCH1CON_CHCHNS_LENGTH 0x00000001
#define _DCH1CON_w_POSITION 0x00000000
#define _DCH1CON_w_MASK 0xFFFFFFFF
#define _DCH1CON_w_LENGTH 0x00000020
#define _DCH1ECON_AIRQEN_POSITION 0x00000003
#define _DCH1ECON_AIRQEN_MASK 0x00000008
#define _DCH1ECON_AIRQEN_LENGTH 0x00000001
#define _DCH1ECON_SIRQEN_POSITION 0x00000004
#define _DCH1ECON_SIRQEN_MASK 0x00000010
#define _DCH1ECON_SIRQEN_LENGTH 0x00000001
#define _DCH1ECON_PATEN_POSITION 0x00000005
#define _DCH1ECON_PATEN_MASK 0x00000020
#define _DCH1ECON_PATEN_LENGTH 0x00000001
#define _DCH1ECON_CABORT_POSITION 0x00000006
#define _DCH1ECON_CABORT_MASK 0x00000040
#define _DCH1ECON_CABORT_LENGTH 0x00000001
#define _DCH1ECON_CFORCE_POSITION 0x00000007
#define _DCH1ECON_CFORCE_MASK 0x00000080
#define _DCH1ECON_CFORCE_LENGTH 0x00000001
#define _DCH1ECON_CHSIRQ_POSITION 0x00000008
#define _DCH1ECON_CHSIRQ_MASK 0x0000FF00
#define _DCH1ECON_CHSIRQ_LENGTH 0x00000008
#define _DCH1ECON_CHAIRQ_POSITION 0x00000010
#define _DCH1ECON_CHAIRQ_MASK 0x00FF0000
#define _DCH1ECON_CHAIRQ_LENGTH 0x00000008
#define _DCH1ECON_w_POSITION 0x00000000
#define _DCH1ECON_w_MASK 0xFFFFFFFF
#define _DCH1ECON_w_LENGTH 0x00000020
#define _DCH1INT_CHERIF_POSITION 0x00000000
#define _DCH1INT_CHERIF_MASK 0x00000001
#define _DCH1INT_CHERIF_LENGTH 0x00000001
#define _DCH1INT_CHTAIF_POSITION 0x00000001
#define _DCH1INT_CHTAIF_MASK 0x00000002
#define _DCH1INT_CHTAIF_LENGTH 0x00000001
#define _DCH1INT_CHCCIF_POSITION 0x00000002
#define _DCH1INT_CHCCIF_MASK 0x00000004
#define _DCH1INT_CHCCIF_LENGTH 0x00000001
#define _DCH1INT_CHBCIF_POSITION 0x00000003
#define _DCH1INT_CHBCIF_MASK 0x00000008
#define _DCH1INT_CHBCIF_LENGTH 0x00000001
#define _DCH1INT_CHDHIF_POSITION 0x00000004
#define _DCH1INT_CHDHIF_MASK 0x00000010
#define _DCH1INT_CHDHIF_LENGTH 0x00000001
#define _DCH1INT_CHDDIF_POSITION 0x00000005
#define _DCH1INT_CHDDIF_MASK 0x00000020
#define _DCH1INT_CHDDIF_LENGTH 0x00000001
#define _DCH1INT_CHSHIF_POSITION 0x00000006
#define _DCH1INT_CHSHIF_MASK 0x00000040
#define _DCH1INT_CHSHIF_LENGTH 0x00000001
#define _DCH1INT_CHSDIF_POSITION 0x00000007
#define _DCH1INT_CHSDIF_MASK 0x00000080
#define _DCH1INT_CHSDIF_LENGTH 0x00000001
#define _DCH1INT_CHERIE_POSITION 0x00000010
#define _DCH1INT_CHERIE_MASK 0x00010000
#define _DCH1INT_CHERIE_LENGTH 0x00000001
#define _DCH1INT_CHTAIE_POSITION 0x00000011
#define _DCH1INT_CHTAIE_MASK 0x00020000
#define _DCH1INT_CHTAIE_LENGTH 0x00000001
#define _DCH1INT_CHCCIE_POSITION 0x00000012
#define _DCH1INT_CHCCIE_MASK 0x00040000
#define _DCH1INT_CHCCIE_LENGTH 0x00000001
#define _DCH1INT_CHBCIE_POSITION 0x00000013
#define _DCH1INT_CHBCIE_MASK 0x00080000
#define _DCH1INT_CHBCIE_LENGTH 0x00000001
#define _DCH1INT_CHDHIE_POSITION 0x00000014
#define _DCH1INT_CHDHIE_MASK 0x00100000
#define _DCH1INT_CHDHIE_LENGTH 0x00000001
#define _DCH1INT_CHDDIE_POSITION 0x00000015
#define _DCH1INT_CHDDIE_MASK 0x00200000
#define _DCH1INT_CHDDIE_LENGTH 0x00000001
#define _DCH1INT_CHSHIE_POSITION 0x00000016
#define _DCH1INT_CHSHIE_MASK 0x00400000
#define _DCH1INT_CHSHIE_LENGTH 0x00000001
#define _DCH1INT_CHSDIE_POSITION 0x00000017
#define _DCH1INT_CHSDIE_MASK 0x00800000
#define _DCH1INT_CHSDIE_LENGTH 0x00000001
#define _DCH1INT_w_POSITION 0x00000000
#define _DCH1INT_w_MASK 0xFFFFFFFF
#define _DCH1INT_w_LENGTH 0x00000020
#define _DCH2CON_CHPRI_POSITION 0x00000000
#define _DCH2CON_CHPRI_MASK 0x00000003
#define _DCH2CON_CHPRI_LENGTH 0x00000002
#define _DCH2CON_CHEDET_POSITION 0x00000002
#define _DCH2CON_CHEDET_MASK 0x00000004
#define _DCH2CON_CHEDET_LENGTH 0x00000001
#define _DCH2CON_CHAEN_POSITION 0x00000004
#define _DCH2CON_CHAEN_MASK 0x00000010
#define _DCH2CON_CHAEN_LENGTH 0x00000001
#define _DCH2CON_CHCHN_POSITION 0x00000005
#define _DCH2CON_CHCHN_MASK 0x00000020
#define _DCH2CON_CHCHN_LENGTH 0x00000001
#define _DCH2CON_CHAED_POSITION 0x00000006
#define _DCH2CON_CHAED_MASK 0x00000040
#define _DCH2CON_CHAED_LENGTH 0x00000001
#define _DCH2CON_CHEN_POSITION 0x00000007
#define _DCH2CON_CHEN_MASK 0x00000080
#define _DCH2CON_CHEN_LENGTH 0x00000001
#define _DCH2CON_CHCHNS_POSITION 0x00000008
#define _DCH2CON_CHCHNS_MASK 0x00000100
#define _DCH2CON_CHCHNS_LENGTH 0x00000001
#define _DCH2CON_w_POSITION 0x00000000
#define _DCH2CON_w_MASK 0xFFFFFFFF
#define _DCH2CON_w_LENGTH 0x00000020
#define _DCH2ECON_AIRQEN_POSITION 0x00000003
#define _DCH2ECON_AIRQEN_MASK 0x00000008
#define _DCH2ECON_AIRQEN_LENGTH 0x00000001
#define _DCH2ECON_SIRQEN_POSITION 0x00000004
#define _DCH2ECON_SIRQEN_MASK 0x00000010
#define _DCH2ECON_SIRQEN_LENGTH 0x00000001
#define _DCH2ECON_PATEN_POSITION 0x00000005
#define _DCH2ECON_PATEN_MASK 0x00000020
#define _DCH2ECON_PATEN_LENGTH 0x00000001
#define _DCH2ECON_CABORT_POSITION 0x00000006
#define _DCH2ECON_CABORT_MASK 0x00000040
#define _DCH2ECON_CABORT_LENGTH 0x00000001
#define _DCH2ECON_CFORCE_POSITION 0x00000007
#define _DCH2ECON_CFORCE_MASK 0x00000080
#define _DCH2ECON_CFORCE_LENGTH 0x00000001
#define _DCH2ECON_CHSIRQ_POSITION 0x00000008
#define _DCH2ECON_CHSIRQ_MASK 0x0000FF00
#define _DCH2ECON_CHSIRQ_LENGTH 0x00000008
#define _DCH2ECON_CHAIRQ_POSITION 0x00000010
#define _DCH2ECON_CHAIRQ_MASK 0x00FF0000
#define _DCH2ECON_CHAIRQ_LENGTH 0x00000008
#define _DCH2ECON_w_POSITION 0x00000000
#define _DCH2ECON_w_MASK 0xFFFFFFFF
#define _DCH2ECON_w_LENGTH 0x00000020
#define _DCH2INT_CHERIF_POSITION 0x00000000
#define _DCH2INT_CHERIF_MASK 0x00000001
#define _DCH2INT_CHERIF_LENGTH 0x00000001
#define _DCH2INT_CHTAIF_POSITION 0x00000001
#define _DCH2INT_CHTAIF_MASK 0x00000002
#define _DCH2INT_CHTAIF_LENGTH 0x00000001
#define _DCH2INT_CHCCIF_POSITION 0x00000002
#define _DCH2INT_CHCCIF_MASK 0x00000004
#define _DCH2INT_CHCCIF_LENGTH 0x00000001
#define _DCH2INT_CHBCIF_POSITION 0x00000003
#define _DCH2INT_CHBCIF_MASK 0x00000008
#define _DCH2INT_CHBCIF_LENGTH 0x00000001
#define _DCH2INT_CHDHIF_POSITION 0x00000004
#define _DCH2INT_CHDHIF_MASK 0x00000010
#define _DCH2INT_CHDHIF_LENGTH 0x00000001
#define _DCH2INT_CHDDIF_POSITION 0x00000005
#define _DCH2INT_CHDDIF_MASK 0x00000020
#define _DCH2INT_CHDDIF_LENGTH 0x00000001
#define _DCH2INT_CHSHIF_POSITION 0x00000006
#define _DCH2INT_CHSHIF_MASK 0x00000040
#define _DCH2INT_CHSHIF_LENGTH 0x00000001
#define _DCH2INT_CHSDIF_POSITION 0x00000007
#define _DCH2INT_CHSDIF_MASK 0x00000080
#define _DCH2INT_CHSDIF_LENGTH 0x00000001
#define _DCH2INT_CHERIE_POSITION 0x00000010
#define _DCH2INT_CHERIE_MASK 0x00010000
#define _DCH2INT_CHERIE_LENGTH 0x00000001
#define _DCH2INT_CHTAIE_POSITION 0x00000011
#define _DCH2INT_CHTAIE_MASK 0x00020000
#define _DCH2INT_CHTAIE_LENGTH 0x00000001
#define _DCH2INT_CHCCIE_POSITION 0x00000012
#define _DCH2INT_CHCCIE_MASK 0x00040000
#define _DCH2INT_CHCCIE_LENGTH 0x00000001
#define _DCH2INT_CHBCIE_POSITION 0x00000013
#define _DCH2INT_CHBCIE_MASK 0x00080000
#define _DCH2INT_CHBCIE_LENGTH 0x00000001
#define _DCH2INT_CHDHIE_POSITION 0x00000014
#define _DCH2INT_CHDHIE_MASK 0x00100000
#define _DCH2INT_CHDHIE_LENGTH 0x00000001
#define _DCH2INT_CHDDIE_POSITION 0x00000015
#define _DCH2INT_CHDDIE_MASK 0x00200000
#define _DCH2INT_CHDDIE_LENGTH 0x00000001
#define _DCH2INT_CHSHIE_POSITION 0x00000016
#define _DCH2INT_CHSHIE_MASK 0x00400000
#define _DCH2INT_CHSHIE_LENGTH 0x00000001
#define _DCH2INT_CHSDIE_POSITION 0x00000017
#define _DCH2INT_CHSDIE_MASK 0x00800000
#define _DCH2INT_CHSDIE_LENGTH 0x00000001
#define _DCH2INT_w_POSITION 0x00000000
#define _DCH2INT_w_MASK 0xFFFFFFFF
#define _DCH2INT_w_LENGTH 0x00000020
#define _DCH3CON_CHPRI_POSITION 0x00000000
#define _DCH3CON_CHPRI_MASK 0x00000003
#define _DCH3CON_CHPRI_LENGTH 0x00000002
#define _DCH3CON_CHEDET_POSITION 0x00000002
#define _DCH3CON_CHEDET_MASK 0x00000004
#define _DCH3CON_CHEDET_LENGTH 0x00000001
#define _DCH3CON_CHAEN_POSITION 0x00000004
#define _DCH3CON_CHAEN_MASK 0x00000010
#define _DCH3CON_CHAEN_LENGTH 0x00000001
#define _DCH3CON_CHCHN_POSITION 0x00000005
#define _DCH3CON_CHCHN_MASK 0x00000020
#define _DCH3CON_CHCHN_LENGTH 0x00000001
#define _DCH3CON_CHAED_POSITION 0x00000006
#define _DCH3CON_CHAED_MASK 0x00000040
#define _DCH3CON_CHAED_LENGTH 0x00000001
#define _DCH3CON_CHEN_POSITION 0x00000007
#define _DCH3CON_CHEN_MASK 0x00000080
#define _DCH3CON_CHEN_LENGTH 0x00000001
#define _DCH3CON_CHCHNS_POSITION 0x00000008
#define _DCH3CON_CHCHNS_MASK 0x00000100
#define _DCH3CON_CHCHNS_LENGTH 0x00000001
#define _DCH3CON_w_POSITION 0x00000000
#define _DCH3CON_w_MASK 0xFFFFFFFF
#define _DCH3CON_w_LENGTH 0x00000020
#define _DCH3ECON_AIRQEN_POSITION 0x00000003
#define _DCH3ECON_AIRQEN_MASK 0x00000008
#define _DCH3ECON_AIRQEN_LENGTH 0x00000001
#define _DCH3ECON_SIRQEN_POSITION 0x00000004
#define _DCH3ECON_SIRQEN_MASK 0x00000010
#define _DCH3ECON_SIRQEN_LENGTH 0x00000001
#define _DCH3ECON_PATEN_POSITION 0x00000005
#define _DCH3ECON_PATEN_MASK 0x00000020
#define _DCH3ECON_PATEN_LENGTH 0x00000001
#define _DCH3ECON_CABORT_POSITION 0x00000006
#define _DCH3ECON_CABORT_MASK 0x00000040
#define _DCH3ECON_CABORT_LENGTH 0x00000001
#define _DCH3ECON_CFORCE_POSITION 0x00000007
#define _DCH3ECON_CFORCE_MASK 0x00000080
#define _DCH3ECON_CFORCE_LENGTH 0x00000001
#define _DCH3ECON_CHSIRQ_POSITION 0x00000008
#define _DCH3ECON_CHSIRQ_MASK 0x0000FF00
#define _DCH3ECON_CHSIRQ_LENGTH 0x00000008
#define _DCH3ECON_CHAIRQ_POSITION 0x00000010
#define _DCH3ECON_CHAIRQ_MASK 0x00FF0000
#define _DCH3ECON_CHAIRQ_LENGTH 0x00000008
#define _DCH3ECON_w_POSITION 0x00000000
#define _DCH3ECON_w_MASK 0xFFFFFFFF
#define _DCH3ECON_w_LENGTH 0x00000020
#define _DCH3INT_CHERIF_POSITION 0x00000000
#define _DCH3INT_CHERIF_MASK 0x00000001
#define _DCH3INT_CHERIF_LENGTH 0x00000001
#define _DCH3INT_CHTAIF_POSITION 0x00000001
#define _DCH3INT_CHTAIF_MASK 0x00000002
#define _DCH3INT_CHTAIF_LENGTH 0x00000001
#define _DCH3INT_CHCCIF_POSITION 0x00000002
#define _DCH3INT_CHCCIF_MASK 0x00000004
#define _DCH3INT_CHCCIF_LENGTH 0x00000001
#define _DCH3INT_CHBCIF_POSITION 0x00000003
#define _DCH3INT_CHBCIF_MASK 0x00000008
#define _DCH3INT_CHBCIF_LENGTH 0x00000001
#define _DCH3INT_CHDHIF_POSITION 0x00000004
#define _DCH3INT_CHDHIF_MASK 0x00000010
#define _DCH3INT_CHDHIF_LENGTH 0x00000001
#define _DCH3INT_CHDDIF_POSITION 0x00000005
#define _DCH3INT_CHDDIF_MASK 0x00000020
#define _DCH3INT_CHDDIF_LENGTH 0x00000001
#define _DCH3INT_CHSHIF_POSITION 0x00000006
#define _DCH3INT_CHSHIF_MASK 0x00000040
#define _DCH3INT_CHSHIF_LENGTH 0x00000001
#define _DCH3INT_CHSDIF_POSITION 0x00000007
#define _DCH3INT_CHSDIF_MASK 0x00000080
#define _DCH3INT_CHSDIF_LENGTH 0x00000001
#define _DCH3INT_CHERIE_POSITION 0x00000010
#define _DCH3INT_CHERIE_MASK 0x00010000
#define _DCH3INT_CHERIE_LENGTH 0x00000001
#define _DCH3INT_CHTAIE_POSITION 0x00000011
#define _DCH3INT_CHTAIE_MASK 0x00020000
#define _DCH3INT_CHTAIE_LENGTH 0x00000001
#define _DCH3INT_CHCCIE_POSITION 0x00000012
#define _DCH3INT_CHCCIE_MASK 0x00040000
#define _DCH3INT_CHCCIE_LENGTH 0x00000001
#define _DCH3INT_CHBCIE_POSITION 0x00000013
#define _DCH3INT_CHBCIE_MASK 0x00080000
#define _DCH3INT_CHBCIE_LENGTH 0x00000001
#define _DCH3INT_CHDHIE_POSITION 0x00000014
#define _DCH3INT_CHDHIE_MASK 0x00100000
#define _DCH3INT_CHDHIE_LENGTH 0x00000001
#define _DCH3INT_CHDDIE_POSITION 0x00000015
#define _DCH3INT_CHDDIE_MASK 0x00200000
#define _DCH3INT_CHDDIE_LENGTH 0x00000001
#define _DCH3INT_CHSHIE_POSITION 0x00000016
#define _DCH3INT_CHSHIE_MASK 0x00400000
#define _DCH3INT_CHSHIE_LENGTH 0x00000001
#define _DCH3INT_CHSDIE_POSITION 0x00000017
#define _DCH3INT_CHSDIE_MASK 0x00800000
#define _DCH3INT_CHSDIE_LENGTH 0x00000001
#define _DCH3INT_w_POSITION 0x00000000
#define _DCH3INT_w_MASK 0xFFFFFFFF
#define _DCH3INT_w_LENGTH 0x00000020
#define _CHECON_PFMWS_POSITION 0x00000000
#define _CHECON_PFMWS_MASK 0x00000007
#define _CHECON_PFMWS_LENGTH 0x00000003
#define _CHECON_PREFEN_POSITION 0x00000004
#define _CHECON_PREFEN_MASK 0x00000030
#define _CHECON_PREFEN_LENGTH 0x00000002
#define _CHECON_DCSZ_POSITION 0x00000008
#define _CHECON_DCSZ_MASK 0x00000300
#define _CHECON_DCSZ_LENGTH 0x00000002
#define _CHECON_CHECOH_POSITION 0x00000010
#define _CHECON_CHECOH_MASK 0x00010000
#define _CHECON_CHECOH_LENGTH 0x00000001
#define _CHECON_w_POSITION 0x00000000
#define _CHECON_w_MASK 0xFFFFFFFF
#define _CHECON_w_LENGTH 0x00000020
#define _CHEACC_CHEIDX_POSITION 0x00000000
#define _CHEACC_CHEIDX_MASK 0x0000000F
#define _CHEACC_CHEIDX_LENGTH 0x00000004
#define _CHEACC_CHEWEN_POSITION 0x0000001F
#define _CHEACC_CHEWEN_MASK 0x80000000
#define _CHEACC_CHEWEN_LENGTH 0x00000001
#define _CHETAG_LTYPE_POSITION 0x00000001
#define _CHETAG_LTYPE_MASK 0x00000002
#define _CHETAG_LTYPE_LENGTH 0x00000001
#define _CHETAG_LLOCK_POSITION 0x00000002
#define _CHETAG_LLOCK_MASK 0x00000004
#define _CHETAG_LLOCK_LENGTH 0x00000001
#define _CHETAG_LVALID_POSITION 0x00000003
#define _CHETAG_LVALID_MASK 0x00000008
#define _CHETAG_LVALID_LENGTH 0x00000001
#define _CHETAG_LTAG_POSITION 0x00000004
#define _CHETAG_LTAG_MASK 0x00FFFFF0
#define _CHETAG_LTAG_LENGTH 0x00000014
#define _CHETAG_LTAGBOOT_POSITION 0x0000001F
#define _CHETAG_LTAGBOOT_MASK 0x80000000
#define _CHETAG_LTAGBOOT_LENGTH 0x00000001
#define _CHETAG_w_POSITION 0x00000000
#define _CHETAG_w_MASK 0xFFFFFFFF
#define _CHETAG_w_LENGTH 0x00000020
#define _CHEMSK_LMASK_POSITION 0x00000005
#define _CHEMSK_LMASK_MASK 0x0000FFE0
#define _CHEMSK_LMASK_LENGTH 0x0000000B
#define _CHEW0_CHEW0_POSITION 0x00000000
#define _CHEW0_CHEW0_MASK 0xFFFFFFFF
#define _CHEW0_CHEW0_LENGTH 0x00000020
#define _CHEW1_CHEW1_POSITION 0x00000000
#define _CHEW1_CHEW1_MASK 0xFFFFFFFF
#define _CHEW1_CHEW1_LENGTH 0x00000020
#define _CHEW2_CHEW2_POSITION 0x00000000
#define _CHEW2_CHEW2_MASK 0xFFFFFFFF
#define _CHEW2_CHEW2_LENGTH 0x00000020
#define _CHEW3_CHEW3_POSITION 0x00000000
#define _CHEW3_CHEW3_MASK 0xFFFFFFFF
#define _CHEW3_CHEW3_LENGTH 0x00000020
#define _CHELRU_CHELRU_POSITION 0x00000000
#define _CHELRU_CHELRU_MASK 0x01FFFFFF
#define _CHELRU_CHELRU_LENGTH 0x00000019
#define _CHEHIT_CHEHIT_POSITION 0x00000000
#define _CHEHIT_CHEHIT_MASK 0xFFFFFFFF
#define _CHEHIT_CHEHIT_LENGTH 0x00000020
#define _CHEMIS_CHEMIS_POSITION 0x00000000
#define _CHEMIS_CHEMIS_MASK 0xFFFFFFFF
#define _CHEMIS_CHEMIS_LENGTH 0x00000020
#define _CHEPFABT_CHEPFABT_POSITION 0x00000000
#define _CHEPFABT_CHEPFABT_MASK 0xFFFFFFFF
#define _CHEPFABT_CHEPFABT_LENGTH 0x00000020
#define _TRISA_TRISA0_POSITION 0x00000000
#define _TRISA_TRISA0_MASK 0x00000001
#define _TRISA_TRISA0_LENGTH 0x00000001
#define _TRISA_TRISA1_POSITION 0x00000001
#define _TRISA_TRISA1_MASK 0x00000002
#define _TRISA_TRISA1_LENGTH 0x00000001
#define _TRISA_TRISA2_POSITION 0x00000002
#define _TRISA_TRISA2_MASK 0x00000004
#define _TRISA_TRISA2_LENGTH 0x00000001
#define _TRISA_TRISA3_POSITION 0x00000003
#define _TRISA_TRISA3_MASK 0x00000008
#define _TRISA_TRISA3_LENGTH 0x00000001
#define _TRISA_TRISA4_POSITION 0x00000004
#define _TRISA_TRISA4_MASK 0x00000010
#define _TRISA_TRISA4_LENGTH 0x00000001
#define _TRISA_TRISA5_POSITION 0x00000005
#define _TRISA_TRISA5_MASK 0x00000020
#define _TRISA_TRISA5_LENGTH 0x00000001
#define _TRISA_TRISA6_POSITION 0x00000006
#define _TRISA_TRISA6_MASK 0x00000040
#define _TRISA_TRISA6_LENGTH 0x00000001
#define _TRISA_TRISA7_POSITION 0x00000007
#define _TRISA_TRISA7_MASK 0x00000080
#define _TRISA_TRISA7_LENGTH 0x00000001
#define _TRISA_TRISA9_POSITION 0x00000009
#define _TRISA_TRISA9_MASK 0x00000200
#define _TRISA_TRISA9_LENGTH 0x00000001
#define _TRISA_TRISA10_POSITION 0x0000000A
#define _TRISA_TRISA10_MASK 0x00000400
#define _TRISA_TRISA10_LENGTH 0x00000001
#define _TRISA_TRISA14_POSITION 0x0000000E
#define _TRISA_TRISA14_MASK 0x00004000
#define _TRISA_TRISA14_LENGTH 0x00000001
#define _TRISA_TRISA15_POSITION 0x0000000F
#define _TRISA_TRISA15_MASK 0x00008000
#define _TRISA_TRISA15_LENGTH 0x00000001
#define _TRISA_w_POSITION 0x00000000
#define _TRISA_w_MASK 0xFFFFFFFF
#define _TRISA_w_LENGTH 0x00000020
#define _PORTA_RA0_POSITION 0x00000000
#define _PORTA_RA0_MASK 0x00000001
#define _PORTA_RA0_LENGTH 0x00000001
#define _PORTA_RA1_POSITION 0x00000001
#define _PORTA_RA1_MASK 0x00000002
#define _PORTA_RA1_LENGTH 0x00000001
#define _PORTA_RA2_POSITION 0x00000002
#define _PORTA_RA2_MASK 0x00000004
#define _PORTA_RA2_LENGTH 0x00000001
#define _PORTA_RA3_POSITION 0x00000003
#define _PORTA_RA3_MASK 0x00000008
#define _PORTA_RA3_LENGTH 0x00000001
#define _PORTA_RA4_POSITION 0x00000004
#define _PORTA_RA4_MASK 0x00000010
#define _PORTA_RA4_LENGTH 0x00000001
#define _PORTA_RA5_POSITION 0x00000005
#define _PORTA_RA5_MASK 0x00000020
#define _PORTA_RA5_LENGTH 0x00000001
#define _PORTA_RA6_POSITION 0x00000006
#define _PORTA_RA6_MASK 0x00000040
#define _PORTA_RA6_LENGTH 0x00000001
#define _PORTA_RA7_POSITION 0x00000007
#define _PORTA_RA7_MASK 0x00000080
#define _PORTA_RA7_LENGTH 0x00000001
#define _PORTA_RA9_POSITION 0x00000009
#define _PORTA_RA9_MASK 0x00000200
#define _PORTA_RA9_LENGTH 0x00000001
#define _PORTA_RA10_POSITION 0x0000000A
#define _PORTA_RA10_MASK 0x00000400
#define _PORTA_RA10_LENGTH 0x00000001
#define _PORTA_RA14_POSITION 0x0000000E
#define _PORTA_RA14_MASK 0x00004000
#define _PORTA_RA14_LENGTH 0x00000001
#define _PORTA_RA15_POSITION 0x0000000F
#define _PORTA_RA15_MASK 0x00008000
#define _PORTA_RA15_LENGTH 0x00000001
#define _PORTA_w_POSITION 0x00000000
#define _PORTA_w_MASK 0xFFFFFFFF
#define _PORTA_w_LENGTH 0x00000020
#define _LATA_LATA0_POSITION 0x00000000
#define _LATA_LATA0_MASK 0x00000001
#define _LATA_LATA0_LENGTH 0x00000001
#define _LATA_LATA1_POSITION 0x00000001
#define _LATA_LATA1_MASK 0x00000002
#define _LATA_LATA1_LENGTH 0x00000001
#define _LATA_LATA2_POSITION 0x00000002
#define _LATA_LATA2_MASK 0x00000004
#define _LATA_LATA2_LENGTH 0x00000001
#define _LATA_LATA3_POSITION 0x00000003
#define _LATA_LATA3_MASK 0x00000008
#define _LATA_LATA3_LENGTH 0x00000001
#define _LATA_LATA4_POSITION 0x00000004
#define _LATA_LATA4_MASK 0x00000010
#define _LATA_LATA4_LENGTH 0x00000001
#define _LATA_LATA5_POSITION 0x00000005
#define _LATA_LATA5_MASK 0x00000020
#define _LATA_LATA5_LENGTH 0x00000001
#define _LATA_LATA6_POSITION 0x00000006
#define _LATA_LATA6_MASK 0x00000040
#define _LATA_LATA6_LENGTH 0x00000001
#define _LATA_LATA7_POSITION 0x00000007
#define _LATA_LATA7_MASK 0x00000080
#define _LATA_LATA7_LENGTH 0x00000001
#define _LATA_LATA9_POSITION 0x00000009
#define _LATA_LATA9_MASK 0x00000200
#define _LATA_LATA9_LENGTH 0x00000001
#define _LATA_LATA10_POSITION 0x0000000A
#define _LATA_LATA10_MASK 0x00000400
#define _LATA_LATA10_LENGTH 0x00000001
#define _LATA_LATA14_POSITION 0x0000000E
#define _LATA_LATA14_MASK 0x00004000
#define _LATA_LATA14_LENGTH 0x00000001
#define _LATA_LATA15_POSITION 0x0000000F
#define _LATA_LATA15_MASK 0x00008000
#define _LATA_LATA15_LENGTH 0x00000001
#define _LATA_w_POSITION 0x00000000
#define _LATA_w_MASK 0xFFFFFFFF
#define _LATA_w_LENGTH 0x00000020
#define _ODCA_ODCA0_POSITION 0x00000000
#define _ODCA_ODCA0_MASK 0x00000001
#define _ODCA_ODCA0_LENGTH 0x00000001
#define _ODCA_ODCA1_POSITION 0x00000001
#define _ODCA_ODCA1_MASK 0x00000002
#define _ODCA_ODCA1_LENGTH 0x00000001
#define _ODCA_ODCA2_POSITION 0x00000002
#define _ODCA_ODCA2_MASK 0x00000004
#define _ODCA_ODCA2_LENGTH 0x00000001
#define _ODCA_ODCA3_POSITION 0x00000003
#define _ODCA_ODCA3_MASK 0x00000008
#define _ODCA_ODCA3_LENGTH 0x00000001
#define _ODCA_ODCA4_POSITION 0x00000004
#define _ODCA_ODCA4_MASK 0x00000010
#define _ODCA_ODCA4_LENGTH 0x00000001
#define _ODCA_ODCA5_POSITION 0x00000005
#define _ODCA_ODCA5_MASK 0x00000020
#define _ODCA_ODCA5_LENGTH 0x00000001
#define _ODCA_ODCA6_POSITION 0x00000006
#define _ODCA_ODCA6_MASK 0x00000040
#define _ODCA_ODCA6_LENGTH 0x00000001
#define _ODCA_ODCA7_POSITION 0x00000007
#define _ODCA_ODCA7_MASK 0x00000080
#define _ODCA_ODCA7_LENGTH 0x00000001
#define _ODCA_ODCA9_POSITION 0x00000009
#define _ODCA_ODCA9_MASK 0x00000200
#define _ODCA_ODCA9_LENGTH 0x00000001
#define _ODCA_ODCA10_POSITION 0x0000000A
#define _ODCA_ODCA10_MASK 0x00000400
#define _ODCA_ODCA10_LENGTH 0x00000001
#define _ODCA_ODCA14_POSITION 0x0000000E
#define _ODCA_ODCA14_MASK 0x00004000
#define _ODCA_ODCA14_LENGTH 0x00000001
#define _ODCA_ODCA15_POSITION 0x0000000F
#define _ODCA_ODCA15_MASK 0x00008000
#define _ODCA_ODCA15_LENGTH 0x00000001
#define _ODCA_w_POSITION 0x00000000
#define _ODCA_w_MASK 0xFFFFFFFF
#define _ODCA_w_LENGTH 0x00000020
#define _TRISB_TRISB0_POSITION 0x00000000
#define _TRISB_TRISB0_MASK 0x00000001
#define _TRISB_TRISB0_LENGTH 0x00000001
#define _TRISB_TRISB1_POSITION 0x00000001
#define _TRISB_TRISB1_MASK 0x00000002
#define _TRISB_TRISB1_LENGTH 0x00000001
#define _TRISB_TRISB2_POSITION 0x00000002
#define _TRISB_TRISB2_MASK 0x00000004
#define _TRISB_TRISB2_LENGTH 0x00000001
#define _TRISB_TRISB3_POSITION 0x00000003
#define _TRISB_TRISB3_MASK 0x00000008
#define _TRISB_TRISB3_LENGTH 0x00000001
#define _TRISB_TRISB4_POSITION 0x00000004
#define _TRISB_TRISB4_MASK 0x00000010
#define _TRISB_TRISB4_LENGTH 0x00000001
#define _TRISB_TRISB5_POSITION 0x00000005
#define _TRISB_TRISB5_MASK 0x00000020
#define _TRISB_TRISB5_LENGTH 0x00000001
#define _TRISB_TRISB6_POSITION 0x00000006
#define _TRISB_TRISB6_MASK 0x00000040
#define _TRISB_TRISB6_LENGTH 0x00000001
#define _TRISB_TRISB7_POSITION 0x00000007
#define _TRISB_TRISB7_MASK 0x00000080
#define _TRISB_TRISB7_LENGTH 0x00000001
#define _TRISB_TRISB8_POSITION 0x00000008
#define _TRISB_TRISB8_MASK 0x00000100
#define _TRISB_TRISB8_LENGTH 0x00000001
#define _TRISB_TRISB9_POSITION 0x00000009
#define _TRISB_TRISB9_MASK 0x00000200
#define _TRISB_TRISB9_LENGTH 0x00000001
#define _TRISB_TRISB10_POSITION 0x0000000A
#define _TRISB_TRISB10_MASK 0x00000400
#define _TRISB_TRISB10_LENGTH 0x00000001
#define _TRISB_TRISB11_POSITION 0x0000000B
#define _TRISB_TRISB11_MASK 0x00000800
#define _TRISB_TRISB11_LENGTH 0x00000001
#define _TRISB_TRISB12_POSITION 0x0000000C
#define _TRISB_TRISB12_MASK 0x00001000
#define _TRISB_TRISB12_LENGTH 0x00000001
#define _TRISB_TRISB13_POSITION 0x0000000D
#define _TRISB_TRISB13_MASK 0x00002000
#define _TRISB_TRISB13_LENGTH 0x00000001
#define _TRISB_TRISB14_POSITION 0x0000000E
#define _TRISB_TRISB14_MASK 0x00004000
#define _TRISB_TRISB14_LENGTH 0x00000001
#define _TRISB_TRISB15_POSITION 0x0000000F
#define _TRISB_TRISB15_MASK 0x00008000
#define _TRISB_TRISB15_LENGTH 0x00000001
#define _TRISB_w_POSITION 0x00000000
#define _TRISB_w_MASK 0xFFFFFFFF
#define _TRISB_w_LENGTH 0x00000020
#define _PORTB_RB0_POSITION 0x00000000
#define _PORTB_RB0_MASK 0x00000001
#define _PORTB_RB0_LENGTH 0x00000001
#define _PORTB_RB1_POSITION 0x00000001
#define _PORTB_RB1_MASK 0x00000002
#define _PORTB_RB1_LENGTH 0x00000001
#define _PORTB_RB2_POSITION 0x00000002
#define _PORTB_RB2_MASK 0x00000004
#define _PORTB_RB2_LENGTH 0x00000001
#define _PORTB_RB3_POSITION 0x00000003
#define _PORTB_RB3_MASK 0x00000008
#define _PORTB_RB3_LENGTH 0x00000001
#define _PORTB_RB4_POSITION 0x00000004
#define _PORTB_RB4_MASK 0x00000010
#define _PORTB_RB4_LENGTH 0x00000001
#define _PORTB_RB5_POSITION 0x00000005
#define _PORTB_RB5_MASK 0x00000020
#define _PORTB_RB5_LENGTH 0x00000001
#define _PORTB_RB6_POSITION 0x00000006
#define _PORTB_RB6_MASK 0x00000040
#define _PORTB_RB6_LENGTH 0x00000001
#define _PORTB_RB7_POSITION 0x00000007
#define _PORTB_RB7_MASK 0x00000080
#define _PORTB_RB7_LENGTH 0x00000001
#define _PORTB_RB8_POSITION 0x00000008
#define _PORTB_RB8_MASK 0x00000100
#define _PORTB_RB8_LENGTH 0x00000001
#define _PORTB_RB9_POSITION 0x00000009
#define _PORTB_RB9_MASK 0x00000200
#define _PORTB_RB9_LENGTH 0x00000001
#define _PORTB_RB10_POSITION 0x0000000A
#define _PORTB_RB10_MASK 0x00000400
#define _PORTB_RB10_LENGTH 0x00000001
#define _PORTB_RB11_POSITION 0x0000000B
#define _PORTB_RB11_MASK 0x00000800
#define _PORTB_RB11_LENGTH 0x00000001
#define _PORTB_RB12_POSITION 0x0000000C
#define _PORTB_RB12_MASK 0x00001000
#define _PORTB_RB12_LENGTH 0x00000001
#define _PORTB_RB13_POSITION 0x0000000D
#define _PORTB_RB13_MASK 0x00002000
#define _PORTB_RB13_LENGTH 0x00000001
#define _PORTB_RB14_POSITION 0x0000000E
#define _PORTB_RB14_MASK 0x00004000
#define _PORTB_RB14_LENGTH 0x00000001
#define _PORTB_RB15_POSITION 0x0000000F
#define _PORTB_RB15_MASK 0x00008000
#define _PORTB_RB15_LENGTH 0x00000001
#define _PORTB_w_POSITION 0x00000000
#define _PORTB_w_MASK 0xFFFFFFFF
#define _PORTB_w_LENGTH 0x00000020
#define _LATB_LATB0_POSITION 0x00000000
#define _LATB_LATB0_MASK 0x00000001
#define _LATB_LATB0_LENGTH 0x00000001
#define _LATB_LATB1_POSITION 0x00000001
#define _LATB_LATB1_MASK 0x00000002
#define _LATB_LATB1_LENGTH 0x00000001
#define _LATB_LATB2_POSITION 0x00000002
#define _LATB_LATB2_MASK 0x00000004
#define _LATB_LATB2_LENGTH 0x00000001
#define _LATB_LATB3_POSITION 0x00000003
#define _LATB_LATB3_MASK 0x00000008
#define _LATB_LATB3_LENGTH 0x00000001
#define _LATB_LATB4_POSITION 0x00000004
#define _LATB_LATB4_MASK 0x00000010
#define _LATB_LATB4_LENGTH 0x00000001
#define _LATB_LATB5_POSITION 0x00000005
#define _LATB_LATB5_MASK 0x00000020
#define _LATB_LATB5_LENGTH 0x00000001
#define _LATB_LATB6_POSITION 0x00000006
#define _LATB_LATB6_MASK 0x00000040
#define _LATB_LATB6_LENGTH 0x00000001
#define _LATB_LATB7_POSITION 0x00000007
#define _LATB_LATB7_MASK 0x00000080
#define _LATB_LATB7_LENGTH 0x00000001
#define _LATB_LATB8_POSITION 0x00000008
#define _LATB_LATB8_MASK 0x00000100
#define _LATB_LATB8_LENGTH 0x00000001
#define _LATB_LATB9_POSITION 0x00000009
#define _LATB_LATB9_MASK 0x00000200
#define _LATB_LATB9_LENGTH 0x00000001
#define _LATB_LATB10_POSITION 0x0000000A
#define _LATB_LATB10_MASK 0x00000400
#define _LATB_LATB10_LENGTH 0x00000001
#define _LATB_LATB11_POSITION 0x0000000B
#define _LATB_LATB11_MASK 0x00000800
#define _LATB_LATB11_LENGTH 0x00000001
#define _LATB_LATB12_POSITION 0x0000000C
#define _LATB_LATB12_MASK 0x00001000
#define _LATB_LATB12_LENGTH 0x00000001
#define _LATB_LATB13_POSITION 0x0000000D
#define _LATB_LATB13_MASK 0x00002000
#define _LATB_LATB13_LENGTH 0x00000001
#define _LATB_LATB14_POSITION 0x0000000E
#define _LATB_LATB14_MASK 0x00004000
#define _LATB_LATB14_LENGTH 0x00000001
#define _LATB_LATB15_POSITION 0x0000000F
#define _LATB_LATB15_MASK 0x00008000
#define _LATB_LATB15_LENGTH 0x00000001
#define _LATB_w_POSITION 0x00000000
#define _LATB_w_MASK 0xFFFFFFFF
#define _LATB_w_LENGTH 0x00000020
#define _ODCB_ODCB0_POSITION 0x00000000
#define _ODCB_ODCB0_MASK 0x00000001
#define _ODCB_ODCB0_LENGTH 0x00000001
#define _ODCB_ODCB1_POSITION 0x00000001
#define _ODCB_ODCB1_MASK 0x00000002
#define _ODCB_ODCB1_LENGTH 0x00000001
#define _ODCB_ODCB2_POSITION 0x00000002
#define _ODCB_ODCB2_MASK 0x00000004
#define _ODCB_ODCB2_LENGTH 0x00000001
#define _ODCB_ODCB3_POSITION 0x00000003
#define _ODCB_ODCB3_MASK 0x00000008
#define _ODCB_ODCB3_LENGTH 0x00000001
#define _ODCB_ODCB4_POSITION 0x00000004
#define _ODCB_ODCB4_MASK 0x00000010
#define _ODCB_ODCB4_LENGTH 0x00000001
#define _ODCB_ODCB5_POSITION 0x00000005
#define _ODCB_ODCB5_MASK 0x00000020
#define _ODCB_ODCB5_LENGTH 0x00000001
#define _ODCB_ODCB6_POSITION 0x00000006
#define _ODCB_ODCB6_MASK 0x00000040
#define _ODCB_ODCB6_LENGTH 0x00000001
#define _ODCB_ODCB7_POSITION 0x00000007
#define _ODCB_ODCB7_MASK 0x00000080
#define _ODCB_ODCB7_LENGTH 0x00000001
#define _ODCB_ODCB8_POSITION 0x00000008
#define _ODCB_ODCB8_MASK 0x00000100
#define _ODCB_ODCB8_LENGTH 0x00000001
#define _ODCB_ODCB9_POSITION 0x00000009
#define _ODCB_ODCB9_MASK 0x00000200
#define _ODCB_ODCB9_LENGTH 0x00000001
#define _ODCB_ODCB10_POSITION 0x0000000A
#define _ODCB_ODCB10_MASK 0x00000400
#define _ODCB_ODCB10_LENGTH 0x00000001
#define _ODCB_ODCB11_POSITION 0x0000000B
#define _ODCB_ODCB11_MASK 0x00000800
#define _ODCB_ODCB11_LENGTH 0x00000001
#define _ODCB_ODCB12_POSITION 0x0000000C
#define _ODCB_ODCB12_MASK 0x00001000
#define _ODCB_ODCB12_LENGTH 0x00000001
#define _ODCB_ODCB13_POSITION 0x0000000D
#define _ODCB_ODCB13_MASK 0x00002000
#define _ODCB_ODCB13_LENGTH 0x00000001
#define _ODCB_ODCB14_POSITION 0x0000000E
#define _ODCB_ODCB14_MASK 0x00004000
#define _ODCB_ODCB14_LENGTH 0x00000001
#define _ODCB_ODCB15_POSITION 0x0000000F
#define _ODCB_ODCB15_MASK 0x00008000
#define _ODCB_ODCB15_LENGTH 0x00000001
#define _ODCB_w_POSITION 0x00000000
#define _ODCB_w_MASK 0xFFFFFFFF
#define _ODCB_w_LENGTH 0x00000020
#define _TRISC_TRISC1_POSITION 0x00000001
#define _TRISC_TRISC1_MASK 0x00000002
#define _TRISC_TRISC1_LENGTH 0x00000001
#define _TRISC_TRISC2_POSITION 0x00000002
#define _TRISC_TRISC2_MASK 0x00000004
#define _TRISC_TRISC2_LENGTH 0x00000001
#define _TRISC_TRISC3_POSITION 0x00000003
#define _TRISC_TRISC3_MASK 0x00000008
#define _TRISC_TRISC3_LENGTH 0x00000001
#define _TRISC_TRISC4_POSITION 0x00000004
#define _TRISC_TRISC4_MASK 0x00000010
#define _TRISC_TRISC4_LENGTH 0x00000001
#define _TRISC_TRISC12_POSITION 0x0000000C
#define _TRISC_TRISC12_MASK 0x00001000
#define _TRISC_TRISC12_LENGTH 0x00000001
#define _TRISC_TRISC13_POSITION 0x0000000D
#define _TRISC_TRISC13_MASK 0x00002000
#define _TRISC_TRISC13_LENGTH 0x00000001
#define _TRISC_TRISC14_POSITION 0x0000000E
#define _TRISC_TRISC14_MASK 0x00004000
#define _TRISC_TRISC14_LENGTH 0x00000001
#define _TRISC_TRISC15_POSITION 0x0000000F
#define _TRISC_TRISC15_MASK 0x00008000
#define _TRISC_TRISC15_LENGTH 0x00000001
#define _TRISC_w_POSITION 0x00000000
#define _TRISC_w_MASK 0xFFFFFFFF
#define _TRISC_w_LENGTH 0x00000020
#define _PORTC_RC1_POSITION 0x00000001
#define _PORTC_RC1_MASK 0x00000002
#define _PORTC_RC1_LENGTH 0x00000001
#define _PORTC_RC2_POSITION 0x00000002
#define _PORTC_RC2_MASK 0x00000004
#define _PORTC_RC2_LENGTH 0x00000001
#define _PORTC_RC3_POSITION 0x00000003
#define _PORTC_RC3_MASK 0x00000008
#define _PORTC_RC3_LENGTH 0x00000001
#define _PORTC_RC4_POSITION 0x00000004
#define _PORTC_RC4_MASK 0x00000010
#define _PORTC_RC4_LENGTH 0x00000001
#define _PORTC_RC12_POSITION 0x0000000C
#define _PORTC_RC12_MASK 0x00001000
#define _PORTC_RC12_LENGTH 0x00000001
#define _PORTC_RC13_POSITION 0x0000000D
#define _PORTC_RC13_MASK 0x00002000
#define _PORTC_RC13_LENGTH 0x00000001
#define _PORTC_RC14_POSITION 0x0000000E
#define _PORTC_RC14_MASK 0x00004000
#define _PORTC_RC14_LENGTH 0x00000001
#define _PORTC_RC15_POSITION 0x0000000F
#define _PORTC_RC15_MASK 0x00008000
#define _PORTC_RC15_LENGTH 0x00000001
#define _PORTC_w_POSITION 0x00000000
#define _PORTC_w_MASK 0xFFFFFFFF
#define _PORTC_w_LENGTH 0x00000020
#define _LATC_LATC1_POSITION 0x00000001
#define _LATC_LATC1_MASK 0x00000002
#define _LATC_LATC1_LENGTH 0x00000001
#define _LATC_LATC2_POSITION 0x00000002
#define _LATC_LATC2_MASK 0x00000004
#define _LATC_LATC2_LENGTH 0x00000001
#define _LATC_LATC3_POSITION 0x00000003
#define _LATC_LATC3_MASK 0x00000008
#define _LATC_LATC3_LENGTH 0x00000001
#define _LATC_LATC4_POSITION 0x00000004
#define _LATC_LATC4_MASK 0x00000010
#define _LATC_LATC4_LENGTH 0x00000001
#define _LATC_LATC12_POSITION 0x0000000C
#define _LATC_LATC12_MASK 0x00001000
#define _LATC_LATC12_LENGTH 0x00000001
#define _LATC_LATC13_POSITION 0x0000000D
#define _LATC_LATC13_MASK 0x00002000
#define _LATC_LATC13_LENGTH 0x00000001
#define _LATC_LATC14_POSITION 0x0000000E
#define _LATC_LATC14_MASK 0x00004000
#define _LATC_LATC14_LENGTH 0x00000001
#define _LATC_LATC15_POSITION 0x0000000F
#define _LATC_LATC15_MASK 0x00008000
#define _LATC_LATC15_LENGTH 0x00000001
#define _LATC_w_POSITION 0x00000000
#define _LATC_w_MASK 0xFFFFFFFF
#define _LATC_w_LENGTH 0x00000020
#define _ODCC_ODCC1_POSITION 0x00000001
#define _ODCC_ODCC1_MASK 0x00000002
#define _ODCC_ODCC1_LENGTH 0x00000001
#define _ODCC_ODCC2_POSITION 0x00000002
#define _ODCC_ODCC2_MASK 0x00000004
#define _ODCC_ODCC2_LENGTH 0x00000001
#define _ODCC_ODCC3_POSITION 0x00000003
#define _ODCC_ODCC3_MASK 0x00000008
#define _ODCC_ODCC3_LENGTH 0x00000001
#define _ODCC_ODCC4_POSITION 0x00000004
#define _ODCC_ODCC4_MASK 0x00000010
#define _ODCC_ODCC4_LENGTH 0x00000001
#define _ODCC_ODCC12_POSITION 0x0000000C
#define _ODCC_ODCC12_MASK 0x00001000
#define _ODCC_ODCC12_LENGTH 0x00000001
#define _ODCC_ODCC13_POSITION 0x0000000D
#define _ODCC_ODCC13_MASK 0x00002000
#define _ODCC_ODCC13_LENGTH 0x00000001
#define _ODCC_ODCC14_POSITION 0x0000000E
#define _ODCC_ODCC14_MASK 0x00004000
#define _ODCC_ODCC14_LENGTH 0x00000001
#define _ODCC_ODCC15_POSITION 0x0000000F
#define _ODCC_ODCC15_MASK 0x00008000
#define _ODCC_ODCC15_LENGTH 0x00000001
#define _ODCC_w_POSITION 0x00000000
#define _ODCC_w_MASK 0xFFFFFFFF
#define _ODCC_w_LENGTH 0x00000020
#define _TRISD_TRISD0_POSITION 0x00000000
#define _TRISD_TRISD0_MASK 0x00000001
#define _TRISD_TRISD0_LENGTH 0x00000001
#define _TRISD_TRISD1_POSITION 0x00000001
#define _TRISD_TRISD1_MASK 0x00000002
#define _TRISD_TRISD1_LENGTH 0x00000001
#define _TRISD_TRISD2_POSITION 0x00000002
#define _TRISD_TRISD2_MASK 0x00000004
#define _TRISD_TRISD2_LENGTH 0x00000001
#define _TRISD_TRISD3_POSITION 0x00000003
#define _TRISD_TRISD3_MASK 0x00000008
#define _TRISD_TRISD3_LENGTH 0x00000001
#define _TRISD_TRISD4_POSITION 0x00000004
#define _TRISD_TRISD4_MASK 0x00000010
#define _TRISD_TRISD4_LENGTH 0x00000001
#define _TRISD_TRISD5_POSITION 0x00000005
#define _TRISD_TRISD5_MASK 0x00000020
#define _TRISD_TRISD5_LENGTH 0x00000001
#define _TRISD_TRISD6_POSITION 0x00000006
#define _TRISD_TRISD6_MASK 0x00000040
#define _TRISD_TRISD6_LENGTH 0x00000001
#define _TRISD_TRISD7_POSITION 0x00000007
#define _TRISD_TRISD7_MASK 0x00000080
#define _TRISD_TRISD7_LENGTH 0x00000001
#define _TRISD_TRISD8_POSITION 0x00000008
#define _TRISD_TRISD8_MASK 0x00000100
#define _TRISD_TRISD8_LENGTH 0x00000001
#define _TRISD_TRISD9_POSITION 0x00000009
#define _TRISD_TRISD9_MASK 0x00000200
#define _TRISD_TRISD9_LENGTH 0x00000001
#define _TRISD_TRISD10_POSITION 0x0000000A
#define _TRISD_TRISD10_MASK 0x00000400
#define _TRISD_TRISD10_LENGTH 0x00000001
#define _TRISD_TRISD11_POSITION 0x0000000B
#define _TRISD_TRISD11_MASK 0x00000800
#define _TRISD_TRISD11_LENGTH 0x00000001
#define _TRISD_TRISD12_POSITION 0x0000000C
#define _TRISD_TRISD12_MASK 0x00001000
#define _TRISD_TRISD12_LENGTH 0x00000001
#define _TRISD_TRISD13_POSITION 0x0000000D
#define _TRISD_TRISD13_MASK 0x00002000
#define _TRISD_TRISD13_LENGTH 0x00000001
#define _TRISD_TRISD14_POSITION 0x0000000E
#define _TRISD_TRISD14_MASK 0x00004000
#define _TRISD_TRISD14_LENGTH 0x00000001
#define _TRISD_TRISD15_POSITION 0x0000000F
#define _TRISD_TRISD15_MASK 0x00008000
#define _TRISD_TRISD15_LENGTH 0x00000001
#define _TRISD_w_POSITION 0x00000000
#define _TRISD_w_MASK 0xFFFFFFFF
#define _TRISD_w_LENGTH 0x00000020
#define _PORTD_RD0_POSITION 0x00000000
#define _PORTD_RD0_MASK 0x00000001
#define _PORTD_RD0_LENGTH 0x00000001
#define _PORTD_RD1_POSITION 0x00000001
#define _PORTD_RD1_MASK 0x00000002
#define _PORTD_RD1_LENGTH 0x00000001
#define _PORTD_RD2_POSITION 0x00000002
#define _PORTD_RD2_MASK 0x00000004
#define _PORTD_RD2_LENGTH 0x00000001
#define _PORTD_RD3_POSITION 0x00000003
#define _PORTD_RD3_MASK 0x00000008
#define _PORTD_RD3_LENGTH 0x00000001
#define _PORTD_RD4_POSITION 0x00000004
#define _PORTD_RD4_MASK 0x00000010
#define _PORTD_RD4_LENGTH 0x00000001
#define _PORTD_RD5_POSITION 0x00000005
#define _PORTD_RD5_MASK 0x00000020
#define _PORTD_RD5_LENGTH 0x00000001
#define _PORTD_RD6_POSITION 0x00000006
#define _PORTD_RD6_MASK 0x00000040
#define _PORTD_RD6_LENGTH 0x00000001
#define _PORTD_RD7_POSITION 0x00000007
#define _PORTD_RD7_MASK 0x00000080
#define _PORTD_RD7_LENGTH 0x00000001
#define _PORTD_RD8_POSITION 0x00000008
#define _PORTD_RD8_MASK 0x00000100
#define _PORTD_RD8_LENGTH 0x00000001
#define _PORTD_RD9_POSITION 0x00000009
#define _PORTD_RD9_MASK 0x00000200
#define _PORTD_RD9_LENGTH 0x00000001
#define _PORTD_RD10_POSITION 0x0000000A
#define _PORTD_RD10_MASK 0x00000400
#define _PORTD_RD10_LENGTH 0x00000001
#define _PORTD_RD11_POSITION 0x0000000B
#define _PORTD_RD11_MASK 0x00000800
#define _PORTD_RD11_LENGTH 0x00000001
#define _PORTD_RD12_POSITION 0x0000000C
#define _PORTD_RD12_MASK 0x00001000
#define _PORTD_RD12_LENGTH 0x00000001
#define _PORTD_RD13_POSITION 0x0000000D
#define _PORTD_RD13_MASK 0x00002000
#define _PORTD_RD13_LENGTH 0x00000001
#define _PORTD_RD14_POSITION 0x0000000E
#define _PORTD_RD14_MASK 0x00004000
#define _PORTD_RD14_LENGTH 0x00000001
#define _PORTD_RD15_POSITION 0x0000000F
#define _PORTD_RD15_MASK 0x00008000
#define _PORTD_RD15_LENGTH 0x00000001
#define _PORTD_w_POSITION 0x00000000
#define _PORTD_w_MASK 0xFFFFFFFF
#define _PORTD_w_LENGTH 0x00000020
#define _LATD_LATD0_POSITION 0x00000000
#define _LATD_LATD0_MASK 0x00000001
#define _LATD_LATD0_LENGTH 0x00000001
#define _LATD_LATD1_POSITION 0x00000001
#define _LATD_LATD1_MASK 0x00000002
#define _LATD_LATD1_LENGTH 0x00000001
#define _LATD_LATD2_POSITION 0x00000002
#define _LATD_LATD2_MASK 0x00000004
#define _LATD_LATD2_LENGTH 0x00000001
#define _LATD_LATD3_POSITION 0x00000003
#define _LATD_LATD3_MASK 0x00000008
#define _LATD_LATD3_LENGTH 0x00000001
#define _LATD_LATD4_POSITION 0x00000004
#define _LATD_LATD4_MASK 0x00000010
#define _LATD_LATD4_LENGTH 0x00000001
#define _LATD_LATD5_POSITION 0x00000005
#define _LATD_LATD5_MASK 0x00000020
#define _LATD_LATD5_LENGTH 0x00000001
#define _LATD_LATD6_POSITION 0x00000006
#define _LATD_LATD6_MASK 0x00000040
#define _LATD_LATD6_LENGTH 0x00000001
#define _LATD_LATD7_POSITION 0x00000007
#define _LATD_LATD7_MASK 0x00000080
#define _LATD_LATD7_LENGTH 0x00000001
#define _LATD_LATD8_POSITION 0x00000008
#define _LATD_LATD8_MASK 0x00000100
#define _LATD_LATD8_LENGTH 0x00000001
#define _LATD_LATD9_POSITION 0x00000009
#define _LATD_LATD9_MASK 0x00000200
#define _LATD_LATD9_LENGTH 0x00000001
#define _LATD_LATD10_POSITION 0x0000000A
#define _LATD_LATD10_MASK 0x00000400
#define _LATD_LATD10_LENGTH 0x00000001
#define _LATD_LATD11_POSITION 0x0000000B
#define _LATD_LATD11_MASK 0x00000800
#define _LATD_LATD11_LENGTH 0x00000001
#define _LATD_LATD12_POSITION 0x0000000C
#define _LATD_LATD12_MASK 0x00001000
#define _LATD_LATD12_LENGTH 0x00000001
#define _LATD_LATD13_POSITION 0x0000000D
#define _LATD_LATD13_MASK 0x00002000
#define _LATD_LATD13_LENGTH 0x00000001
#define _LATD_LATD14_POSITION 0x0000000E
#define _LATD_LATD14_MASK 0x00004000
#define _LATD_LATD14_LENGTH 0x00000001
#define _LATD_LATD15_POSITION 0x0000000F
#define _LATD_LATD15_MASK 0x00008000
#define _LATD_LATD15_LENGTH 0x00000001
#define _LATD_w_POSITION 0x00000000
#define _LATD_w_MASK 0xFFFFFFFF
#define _LATD_w_LENGTH 0x00000020
#define _ODCD_ODCD0_POSITION 0x00000000
#define _ODCD_ODCD0_MASK 0x00000001
#define _ODCD_ODCD0_LENGTH 0x00000001
#define _ODCD_ODCD1_POSITION 0x00000001
#define _ODCD_ODCD1_MASK 0x00000002
#define _ODCD_ODCD1_LENGTH 0x00000001
#define _ODCD_ODCD2_POSITION 0x00000002
#define _ODCD_ODCD2_MASK 0x00000004
#define _ODCD_ODCD2_LENGTH 0x00000001
#define _ODCD_ODCD3_POSITION 0x00000003
#define _ODCD_ODCD3_MASK 0x00000008
#define _ODCD_ODCD3_LENGTH 0x00000001
#define _ODCD_ODCD4_POSITION 0x00000004
#define _ODCD_ODCD4_MASK 0x00000010
#define _ODCD_ODCD4_LENGTH 0x00000001
#define _ODCD_ODCD5_POSITION 0x00000005
#define _ODCD_ODCD5_MASK 0x00000020
#define _ODCD_ODCD5_LENGTH 0x00000001
#define _ODCD_ODCD6_POSITION 0x00000006
#define _ODCD_ODCD6_MASK 0x00000040
#define _ODCD_ODCD6_LENGTH 0x00000001
#define _ODCD_ODCD7_POSITION 0x00000007
#define _ODCD_ODCD7_MASK 0x00000080
#define _ODCD_ODCD7_LENGTH 0x00000001
#define _ODCD_ODCD8_POSITION 0x00000008
#define _ODCD_ODCD8_MASK 0x00000100
#define _ODCD_ODCD8_LENGTH 0x00000001
#define _ODCD_ODCD9_POSITION 0x00000009
#define _ODCD_ODCD9_MASK 0x00000200
#define _ODCD_ODCD9_LENGTH 0x00000001
#define _ODCD_ODCD10_POSITION 0x0000000A
#define _ODCD_ODCD10_MASK 0x00000400
#define _ODCD_ODCD10_LENGTH 0x00000001
#define _ODCD_ODCD11_POSITION 0x0000000B
#define _ODCD_ODCD11_MASK 0x00000800
#define _ODCD_ODCD11_LENGTH 0x00000001
#define _ODCD_ODCD12_POSITION 0x0000000C
#define _ODCD_ODCD12_MASK 0x00001000
#define _ODCD_ODCD12_LENGTH 0x00000001
#define _ODCD_ODCD13_POSITION 0x0000000D
#define _ODCD_ODCD13_MASK 0x00002000
#define _ODCD_ODCD13_LENGTH 0x00000001
#define _ODCD_ODCD14_POSITION 0x0000000E
#define _ODCD_ODCD14_MASK 0x00004000
#define _ODCD_ODCD14_LENGTH 0x00000001
#define _ODCD_ODCD15_POSITION 0x0000000F
#define _ODCD_ODCD15_MASK 0x00008000
#define _ODCD_ODCD15_LENGTH 0x00000001
#define _ODCD_w_POSITION 0x00000000
#define _ODCD_w_MASK 0xFFFFFFFF
#define _ODCD_w_LENGTH 0x00000020
#define _TRISE_TRISE0_POSITION 0x00000000
#define _TRISE_TRISE0_MASK 0x00000001
#define _TRISE_TRISE0_LENGTH 0x00000001
#define _TRISE_TRISE1_POSITION 0x00000001
#define _TRISE_TRISE1_MASK 0x00000002
#define _TRISE_TRISE1_LENGTH 0x00000001
#define _TRISE_TRISE2_POSITION 0x00000002
#define _TRISE_TRISE2_MASK 0x00000004
#define _TRISE_TRISE2_LENGTH 0x00000001
#define _TRISE_TRISE3_POSITION 0x00000003
#define _TRISE_TRISE3_MASK 0x00000008
#define _TRISE_TRISE3_LENGTH 0x00000001
#define _TRISE_TRISE4_POSITION 0x00000004
#define _TRISE_TRISE4_MASK 0x00000010
#define _TRISE_TRISE4_LENGTH 0x00000001
#define _TRISE_TRISE5_POSITION 0x00000005
#define _TRISE_TRISE5_MASK 0x00000020
#define _TRISE_TRISE5_LENGTH 0x00000001
#define _TRISE_TRISE6_POSITION 0x00000006
#define _TRISE_TRISE6_MASK 0x00000040
#define _TRISE_TRISE6_LENGTH 0x00000001
#define _TRISE_TRISE7_POSITION 0x00000007
#define _TRISE_TRISE7_MASK 0x00000080
#define _TRISE_TRISE7_LENGTH 0x00000001
#define _TRISE_TRISE8_POSITION 0x00000008
#define _TRISE_TRISE8_MASK 0x00000100
#define _TRISE_TRISE8_LENGTH 0x00000001
#define _TRISE_TRISE9_POSITION 0x00000009
#define _TRISE_TRISE9_MASK 0x00000200
#define _TRISE_TRISE9_LENGTH 0x00000001
#define _TRISE_w_POSITION 0x00000000
#define _TRISE_w_MASK 0xFFFFFFFF
#define _TRISE_w_LENGTH 0x00000020
#define _PORTE_RE0_POSITION 0x00000000
#define _PORTE_RE0_MASK 0x00000001
#define _PORTE_RE0_LENGTH 0x00000001
#define _PORTE_RE1_POSITION 0x00000001
#define _PORTE_RE1_MASK 0x00000002
#define _PORTE_RE1_LENGTH 0x00000001
#define _PORTE_RE2_POSITION 0x00000002
#define _PORTE_RE2_MASK 0x00000004
#define _PORTE_RE2_LENGTH 0x00000001
#define _PORTE_RE3_POSITION 0x00000003
#define _PORTE_RE3_MASK 0x00000008
#define _PORTE_RE3_LENGTH 0x00000001
#define _PORTE_RE4_POSITION 0x00000004
#define _PORTE_RE4_MASK 0x00000010
#define _PORTE_RE4_LENGTH 0x00000001
#define _PORTE_RE5_POSITION 0x00000005
#define _PORTE_RE5_MASK 0x00000020
#define _PORTE_RE5_LENGTH 0x00000001
#define _PORTE_RE6_POSITION 0x00000006
#define _PORTE_RE6_MASK 0x00000040
#define _PORTE_RE6_LENGTH 0x00000001
#define _PORTE_RE7_POSITION 0x00000007
#define _PORTE_RE7_MASK 0x00000080
#define _PORTE_RE7_LENGTH 0x00000001
#define _PORTE_RE8_POSITION 0x00000008
#define _PORTE_RE8_MASK 0x00000100
#define _PORTE_RE8_LENGTH 0x00000001
#define _PORTE_RE9_POSITION 0x00000009
#define _PORTE_RE9_MASK 0x00000200
#define _PORTE_RE9_LENGTH 0x00000001
#define _PORTE_w_POSITION 0x00000000
#define _PORTE_w_MASK 0xFFFFFFFF
#define _PORTE_w_LENGTH 0x00000020
#define _LATE_LATE0_POSITION 0x00000000
#define _LATE_LATE0_MASK 0x00000001
#define _LATE_LATE0_LENGTH 0x00000001
#define _LATE_LATE1_POSITION 0x00000001
#define _LATE_LATE1_MASK 0x00000002
#define _LATE_LATE1_LENGTH 0x00000001
#define _LATE_LATE2_POSITION 0x00000002
#define _LATE_LATE2_MASK 0x00000004
#define _LATE_LATE2_LENGTH 0x00000001
#define _LATE_LATE3_POSITION 0x00000003
#define _LATE_LATE3_MASK 0x00000008
#define _LATE_LATE3_LENGTH 0x00000001
#define _LATE_LATE4_POSITION 0x00000004
#define _LATE_LATE4_MASK 0x00000010
#define _LATE_LATE4_LENGTH 0x00000001
#define _LATE_LATE5_POSITION 0x00000005
#define _LATE_LATE5_MASK 0x00000020
#define _LATE_LATE5_LENGTH 0x00000001
#define _LATE_LATE6_POSITION 0x00000006
#define _LATE_LATE6_MASK 0x00000040
#define _LATE_LATE6_LENGTH 0x00000001
#define _LATE_LATE7_POSITION 0x00000007
#define _LATE_LATE7_MASK 0x00000080
#define _LATE_LATE7_LENGTH 0x00000001
#define _LATE_LATE8_POSITION 0x00000008
#define _LATE_LATE8_MASK 0x00000100
#define _LATE_LATE8_LENGTH 0x00000001
#define _LATE_LATE9_POSITION 0x00000009
#define _LATE_LATE9_MASK 0x00000200
#define _LATE_LATE9_LENGTH 0x00000001
#define _LATE_w_POSITION 0x00000000
#define _LATE_w_MASK 0xFFFFFFFF
#define _LATE_w_LENGTH 0x00000020
#define _ODCE_ODCE0_POSITION 0x00000000
#define _ODCE_ODCE0_MASK 0x00000001
#define _ODCE_ODCE0_LENGTH 0x00000001
#define _ODCE_ODCE1_POSITION 0x00000001
#define _ODCE_ODCE1_MASK 0x00000002
#define _ODCE_ODCE1_LENGTH 0x00000001
#define _ODCE_ODCE2_POSITION 0x00000002
#define _ODCE_ODCE2_MASK 0x00000004
#define _ODCE_ODCE2_LENGTH 0x00000001
#define _ODCE_ODCE3_POSITION 0x00000003
#define _ODCE_ODCE3_MASK 0x00000008
#define _ODCE_ODCE3_LENGTH 0x00000001
#define _ODCE_ODCE4_POSITION 0x00000004
#define _ODCE_ODCE4_MASK 0x00000010
#define _ODCE_ODCE4_LENGTH 0x00000001
#define _ODCE_ODCE5_POSITION 0x00000005
#define _ODCE_ODCE5_MASK 0x00000020
#define _ODCE_ODCE5_LENGTH 0x00000001
#define _ODCE_ODCE6_POSITION 0x00000006
#define _ODCE_ODCE6_MASK 0x00000040
#define _ODCE_ODCE6_LENGTH 0x00000001
#define _ODCE_ODCE7_POSITION 0x00000007
#define _ODCE_ODCE7_MASK 0x00000080
#define _ODCE_ODCE7_LENGTH 0x00000001
#define _ODCE_ODCE8_POSITION 0x00000008
#define _ODCE_ODCE8_MASK 0x00000100
#define _ODCE_ODCE8_LENGTH 0x00000001
#define _ODCE_ODCE9_POSITION 0x00000009
#define _ODCE_ODCE9_MASK 0x00000200
#define _ODCE_ODCE9_LENGTH 0x00000001
#define _ODCE_w_POSITION 0x00000000
#define _ODCE_w_MASK 0xFFFFFFFF
#define _ODCE_w_LENGTH 0x00000020
#define _TRISF_TRISF0_POSITION 0x00000000
#define _TRISF_TRISF0_MASK 0x00000001
#define _TRISF_TRISF0_LENGTH 0x00000001
#define _TRISF_TRISF1_POSITION 0x00000001
#define _TRISF_TRISF1_MASK 0x00000002
#define _TRISF_TRISF1_LENGTH 0x00000001
#define _TRISF_TRISF2_POSITION 0x00000002
#define _TRISF_TRISF2_MASK 0x00000004
#define _TRISF_TRISF2_LENGTH 0x00000001
#define _TRISF_TRISF3_POSITION 0x00000003
#define _TRISF_TRISF3_MASK 0x00000008
#define _TRISF_TRISF3_LENGTH 0x00000001
#define _TRISF_TRISF4_POSITION 0x00000004
#define _TRISF_TRISF4_MASK 0x00000010
#define _TRISF_TRISF4_LENGTH 0x00000001
#define _TRISF_TRISF5_POSITION 0x00000005
#define _TRISF_TRISF5_MASK 0x00000020
#define _TRISF_TRISF5_LENGTH 0x00000001
#define _TRISF_TRISF6_POSITION 0x00000006
#define _TRISF_TRISF6_MASK 0x00000040
#define _TRISF_TRISF6_LENGTH 0x00000001
#define _TRISF_TRISF7_POSITION 0x00000007
#define _TRISF_TRISF7_MASK 0x00000080
#define _TRISF_TRISF7_LENGTH 0x00000001
#define _TRISF_TRISF8_POSITION 0x00000008
#define _TRISF_TRISF8_MASK 0x00000100
#define _TRISF_TRISF8_LENGTH 0x00000001
#define _TRISF_TRISF12_POSITION 0x0000000C
#define _TRISF_TRISF12_MASK 0x00001000
#define _TRISF_TRISF12_LENGTH 0x00000001
#define _TRISF_TRISF13_POSITION 0x0000000D
#define _TRISF_TRISF13_MASK 0x00002000
#define _TRISF_TRISF13_LENGTH 0x00000001
#define _TRISF_w_POSITION 0x00000000
#define _TRISF_w_MASK 0xFFFFFFFF
#define _TRISF_w_LENGTH 0x00000020
#define _PORTF_RF0_POSITION 0x00000000
#define _PORTF_RF0_MASK 0x00000001
#define _PORTF_RF0_LENGTH 0x00000001
#define _PORTF_RF1_POSITION 0x00000001
#define _PORTF_RF1_MASK 0x00000002
#define _PORTF_RF1_LENGTH 0x00000001
#define _PORTF_RF2_POSITION 0x00000002
#define _PORTF_RF2_MASK 0x00000004
#define _PORTF_RF2_LENGTH 0x00000001
#define _PORTF_RF3_POSITION 0x00000003
#define _PORTF_RF3_MASK 0x00000008
#define _PORTF_RF3_LENGTH 0x00000001
#define _PORTF_RF4_POSITION 0x00000004
#define _PORTF_RF4_MASK 0x00000010
#define _PORTF_RF4_LENGTH 0x00000001
#define _PORTF_RF5_POSITION 0x00000005
#define _PORTF_RF5_MASK 0x00000020
#define _PORTF_RF5_LENGTH 0x00000001
#define _PORTF_RF6_POSITION 0x00000006
#define _PORTF_RF6_MASK 0x00000040
#define _PORTF_RF6_LENGTH 0x00000001
#define _PORTF_RF7_POSITION 0x00000007
#define _PORTF_RF7_MASK 0x00000080
#define _PORTF_RF7_LENGTH 0x00000001
#define _PORTF_RF8_POSITION 0x00000008
#define _PORTF_RF8_MASK 0x00000100
#define _PORTF_RF8_LENGTH 0x00000001
#define _PORTF_RF12_POSITION 0x0000000C
#define _PORTF_RF12_MASK 0x00001000
#define _PORTF_RF12_LENGTH 0x00000001
#define _PORTF_RF13_POSITION 0x0000000D
#define _PORTF_RF13_MASK 0x00002000
#define _PORTF_RF13_LENGTH 0x00000001
#define _PORTF_w_POSITION 0x00000000
#define _PORTF_w_MASK 0xFFFFFFFF
#define _PORTF_w_LENGTH 0x00000020
#define _LATF_LATF0_POSITION 0x00000000
#define _LATF_LATF0_MASK 0x00000001
#define _LATF_LATF0_LENGTH 0x00000001
#define _LATF_LATF1_POSITION 0x00000001
#define _LATF_LATF1_MASK 0x00000002
#define _LATF_LATF1_LENGTH 0x00000001
#define _LATF_LATF2_POSITION 0x00000002
#define _LATF_LATF2_MASK 0x00000004
#define _LATF_LATF2_LENGTH 0x00000001
#define _LATF_LATF3_POSITION 0x00000003
#define _LATF_LATF3_MASK 0x00000008
#define _LATF_LATF3_LENGTH 0x00000001
#define _LATF_LATF4_POSITION 0x00000004
#define _LATF_LATF4_MASK 0x00000010
#define _LATF_LATF4_LENGTH 0x00000001
#define _LATF_LATF5_POSITION 0x00000005
#define _LATF_LATF5_MASK 0x00000020
#define _LATF_LATF5_LENGTH 0x00000001
#define _LATF_LATF6_POSITION 0x00000006
#define _LATF_LATF6_MASK 0x00000040
#define _LATF_LATF6_LENGTH 0x00000001
#define _LATF_LATF7_POSITION 0x00000007
#define _LATF_LATF7_MASK 0x00000080
#define _LATF_LATF7_LENGTH 0x00000001
#define _LATF_LATF8_POSITION 0x00000008
#define _LATF_LATF8_MASK 0x00000100
#define _LATF_LATF8_LENGTH 0x00000001
#define _LATF_LATF12_POSITION 0x0000000C
#define _LATF_LATF12_MASK 0x00001000
#define _LATF_LATF12_LENGTH 0x00000001
#define _LATF_LATF13_POSITION 0x0000000D
#define _LATF_LATF13_MASK 0x00002000
#define _LATF_LATF13_LENGTH 0x00000001
#define _LATF_w_POSITION 0x00000000
#define _LATF_w_MASK 0xFFFFFFFF
#define _LATF_w_LENGTH 0x00000020
#define _ODCF_ODCF0_POSITION 0x00000000
#define _ODCF_ODCF0_MASK 0x00000001
#define _ODCF_ODCF0_LENGTH 0x00000001
#define _ODCF_ODCF1_POSITION 0x00000001
#define _ODCF_ODCF1_MASK 0x00000002
#define _ODCF_ODCF1_LENGTH 0x00000001
#define _ODCF_ODCF2_POSITION 0x00000002
#define _ODCF_ODCF2_MASK 0x00000004
#define _ODCF_ODCF2_LENGTH 0x00000001
#define _ODCF_ODCF3_POSITION 0x00000003
#define _ODCF_ODCF3_MASK 0x00000008
#define _ODCF_ODCF3_LENGTH 0x00000001
#define _ODCF_ODCF4_POSITION 0x00000004
#define _ODCF_ODCF4_MASK 0x00000010
#define _ODCF_ODCF4_LENGTH 0x00000001
#define _ODCF_ODCF5_POSITION 0x00000005
#define _ODCF_ODCF5_MASK 0x00000020
#define _ODCF_ODCF5_LENGTH 0x00000001
#define _ODCF_ODCF6_POSITION 0x00000006
#define _ODCF_ODCF6_MASK 0x00000040
#define _ODCF_ODCF6_LENGTH 0x00000001
#define _ODCF_ODCF7_POSITION 0x00000007
#define _ODCF_ODCF7_MASK 0x00000080
#define _ODCF_ODCF7_LENGTH 0x00000001
#define _ODCF_ODCF8_POSITION 0x00000008
#define _ODCF_ODCF8_MASK 0x00000100
#define _ODCF_ODCF8_LENGTH 0x00000001
#define _ODCF_ODCF12_POSITION 0x0000000C
#define _ODCF_ODCF12_MASK 0x00001000
#define _ODCF_ODCF12_LENGTH 0x00000001
#define _ODCF_ODCF13_POSITION 0x0000000D
#define _ODCF_ODCF13_MASK 0x00002000
#define _ODCF_ODCF13_LENGTH 0x00000001
#define _ODCF_w_POSITION 0x00000000
#define _ODCF_w_MASK 0xFFFFFFFF
#define _ODCF_w_LENGTH 0x00000020
#define _TRISG_TRISG0_POSITION 0x00000000
#define _TRISG_TRISG0_MASK 0x00000001
#define _TRISG_TRISG0_LENGTH 0x00000001
#define _TRISG_TRISG1_POSITION 0x00000001
#define _TRISG_TRISG1_MASK 0x00000002
#define _TRISG_TRISG1_LENGTH 0x00000001
#define _TRISG_TRISG2_POSITION 0x00000002
#define _TRISG_TRISG2_MASK 0x00000004
#define _TRISG_TRISG2_LENGTH 0x00000001
#define _TRISG_TRISG3_POSITION 0x00000003
#define _TRISG_TRISG3_MASK 0x00000008
#define _TRISG_TRISG3_LENGTH 0x00000001
#define _TRISG_TRISG6_POSITION 0x00000006
#define _TRISG_TRISG6_MASK 0x00000040
#define _TRISG_TRISG6_LENGTH 0x00000001
#define _TRISG_TRISG7_POSITION 0x00000007
#define _TRISG_TRISG7_MASK 0x00000080
#define _TRISG_TRISG7_LENGTH 0x00000001
#define _TRISG_TRISG8_POSITION 0x00000008
#define _TRISG_TRISG8_MASK 0x00000100
#define _TRISG_TRISG8_LENGTH 0x00000001
#define _TRISG_TRISG9_POSITION 0x00000009
#define _TRISG_TRISG9_MASK 0x00000200
#define _TRISG_TRISG9_LENGTH 0x00000001
#define _TRISG_TRISG12_POSITION 0x0000000C
#define _TRISG_TRISG12_MASK 0x00001000
#define _TRISG_TRISG12_LENGTH 0x00000001
#define _TRISG_TRISG13_POSITION 0x0000000D
#define _TRISG_TRISG13_MASK 0x00002000
#define _TRISG_TRISG13_LENGTH 0x00000001
#define _TRISG_TRISG14_POSITION 0x0000000E
#define _TRISG_TRISG14_MASK 0x00004000
#define _TRISG_TRISG14_LENGTH 0x00000001
#define _TRISG_TRISG15_POSITION 0x0000000F
#define _TRISG_TRISG15_MASK 0x00008000
#define _TRISG_TRISG15_LENGTH 0x00000001
#define _TRISG_w_POSITION 0x00000000
#define _TRISG_w_MASK 0xFFFFFFFF
#define _TRISG_w_LENGTH 0x00000020
#define _PORTG_RG0_POSITION 0x00000000
#define _PORTG_RG0_MASK 0x00000001
#define _PORTG_RG0_LENGTH 0x00000001
#define _PORTG_RG1_POSITION 0x00000001
#define _PORTG_RG1_MASK 0x00000002
#define _PORTG_RG1_LENGTH 0x00000001
#define _PORTG_RG2_POSITION 0x00000002
#define _PORTG_RG2_MASK 0x00000004
#define _PORTG_RG2_LENGTH 0x00000001
#define _PORTG_RG3_POSITION 0x00000003
#define _PORTG_RG3_MASK 0x00000008
#define _PORTG_RG3_LENGTH 0x00000001
#define _PORTG_RG6_POSITION 0x00000006
#define _PORTG_RG6_MASK 0x00000040
#define _PORTG_RG6_LENGTH 0x00000001
#define _PORTG_RG7_POSITION 0x00000007
#define _PORTG_RG7_MASK 0x00000080
#define _PORTG_RG7_LENGTH 0x00000001
#define _PORTG_RG8_POSITION 0x00000008
#define _PORTG_RG8_MASK 0x00000100
#define _PORTG_RG8_LENGTH 0x00000001
#define _PORTG_RG9_POSITION 0x00000009
#define _PORTG_RG9_MASK 0x00000200
#define _PORTG_RG9_LENGTH 0x00000001
#define _PORTG_RG12_POSITION 0x0000000C
#define _PORTG_RG12_MASK 0x00001000
#define _PORTG_RG12_LENGTH 0x00000001
#define _PORTG_RG13_POSITION 0x0000000D
#define _PORTG_RG13_MASK 0x00002000
#define _PORTG_RG13_LENGTH 0x00000001
#define _PORTG_RG14_POSITION 0x0000000E
#define _PORTG_RG14_MASK 0x00004000
#define _PORTG_RG14_LENGTH 0x00000001
#define _PORTG_RG15_POSITION 0x0000000F
#define _PORTG_RG15_MASK 0x00008000
#define _PORTG_RG15_LENGTH 0x00000001
#define _PORTG_w_POSITION 0x00000000
#define _PORTG_w_MASK 0xFFFFFFFF
#define _PORTG_w_LENGTH 0x00000020
#define _LATG_LATG0_POSITION 0x00000000
#define _LATG_LATG0_MASK 0x00000001
#define _LATG_LATG0_LENGTH 0x00000001
#define _LATG_LATG1_POSITION 0x00000001
#define _LATG_LATG1_MASK 0x00000002
#define _LATG_LATG1_LENGTH 0x00000001
#define _LATG_LATG2_POSITION 0x00000002
#define _LATG_LATG2_MASK 0x00000004
#define _LATG_LATG2_LENGTH 0x00000001
#define _LATG_LATG3_POSITION 0x00000003
#define _LATG_LATG3_MASK 0x00000008
#define _LATG_LATG3_LENGTH 0x00000001
#define _LATG_LATG6_POSITION 0x00000006
#define _LATG_LATG6_MASK 0x00000040
#define _LATG_LATG6_LENGTH 0x00000001
#define _LATG_LATG7_POSITION 0x00000007
#define _LATG_LATG7_MASK 0x00000080
#define _LATG_LATG7_LENGTH 0x00000001
#define _LATG_LATG8_POSITION 0x00000008
#define _LATG_LATG8_MASK 0x00000100
#define _LATG_LATG8_LENGTH 0x00000001
#define _LATG_LATG9_POSITION 0x00000009
#define _LATG_LATG9_MASK 0x00000200
#define _LATG_LATG9_LENGTH 0x00000001
#define _LATG_LATG12_POSITION 0x0000000C
#define _LATG_LATG12_MASK 0x00001000
#define _LATG_LATG12_LENGTH 0x00000001
#define _LATG_LATG13_POSITION 0x0000000D
#define _LATG_LATG13_MASK 0x00002000
#define _LATG_LATG13_LENGTH 0x00000001
#define _LATG_LATG14_POSITION 0x0000000E
#define _LATG_LATG14_MASK 0x00004000
#define _LATG_LATG14_LENGTH 0x00000001
#define _LATG_LATG15_POSITION 0x0000000F
#define _LATG_LATG15_MASK 0x00008000
#define _LATG_LATG15_LENGTH 0x00000001
#define _LATG_w_POSITION 0x00000000
#define _LATG_w_MASK 0xFFFFFFFF
#define _LATG_w_LENGTH 0x00000020
#define _ODCG_ODCG0_POSITION 0x00000000
#define _ODCG_ODCG0_MASK 0x00000001
#define _ODCG_ODCG0_LENGTH 0x00000001
#define _ODCG_ODCG1_POSITION 0x00000001
#define _ODCG_ODCG1_MASK 0x00000002
#define _ODCG_ODCG1_LENGTH 0x00000001
#define _ODCG_ODCG2_POSITION 0x00000002
#define _ODCG_ODCG2_MASK 0x00000004
#define _ODCG_ODCG2_LENGTH 0x00000001
#define _ODCG_ODCG3_POSITION 0x00000003
#define _ODCG_ODCG3_MASK 0x00000008
#define _ODCG_ODCG3_LENGTH 0x00000001
#define _ODCG_ODCG6_POSITION 0x00000006
#define _ODCG_ODCG6_MASK 0x00000040
#define _ODCG_ODCG6_LENGTH 0x00000001
#define _ODCG_ODCG7_POSITION 0x00000007
#define _ODCG_ODCG7_MASK 0x00000080
#define _ODCG_ODCG7_LENGTH 0x00000001
#define _ODCG_ODCG8_POSITION 0x00000008
#define _ODCG_ODCG8_MASK 0x00000100
#define _ODCG_ODCG8_LENGTH 0x00000001
#define _ODCG_ODCG9_POSITION 0x00000009
#define _ODCG_ODCG9_MASK 0x00000200
#define _ODCG_ODCG9_LENGTH 0x00000001
#define _ODCG_ODCG12_POSITION 0x0000000C
#define _ODCG_ODCG12_MASK 0x00001000
#define _ODCG_ODCG12_LENGTH 0x00000001
#define _ODCG_ODCG13_POSITION 0x0000000D
#define _ODCG_ODCG13_MASK 0x00002000
#define _ODCG_ODCG13_LENGTH 0x00000001
#define _ODCG_ODCG14_POSITION 0x0000000E
#define _ODCG_ODCG14_MASK 0x00004000
#define _ODCG_ODCG14_LENGTH 0x00000001
#define _ODCG_ODCG15_POSITION 0x0000000F
#define _ODCG_ODCG15_MASK 0x00008000
#define _ODCG_ODCG15_LENGTH 0x00000001
#define _ODCG_w_POSITION 0x00000000
#define _ODCG_w_MASK 0xFFFFFFFF
#define _ODCG_w_LENGTH 0x00000020
#define _CNCON_SIDL_POSITION 0x0000000D
#define _CNCON_SIDL_MASK 0x00002000
#define _CNCON_SIDL_LENGTH 0x00000001
#define _CNCON_ON_POSITION 0x0000000F
#define _CNCON_ON_MASK 0x00008000
#define _CNCON_ON_LENGTH 0x00000001
#define _CNCON_w_POSITION 0x00000000
#define _CNCON_w_MASK 0xFFFFFFFF
#define _CNCON_w_LENGTH 0x00000020
#define _CNEN_CNEN0_POSITION 0x00000000
#define _CNEN_CNEN0_MASK 0x00000001
#define _CNEN_CNEN0_LENGTH 0x00000001
#define _CNEN_CNEN1_POSITION 0x00000001
#define _CNEN_CNEN1_MASK 0x00000002
#define _CNEN_CNEN1_LENGTH 0x00000001
#define _CNEN_CNEN2_POSITION 0x00000002
#define _CNEN_CNEN2_MASK 0x00000004
#define _CNEN_CNEN2_LENGTH 0x00000001
#define _CNEN_CNEN3_POSITION 0x00000003
#define _CNEN_CNEN3_MASK 0x00000008
#define _CNEN_CNEN3_LENGTH 0x00000001
#define _CNEN_CNEN4_POSITION 0x00000004
#define _CNEN_CNEN4_MASK 0x00000010
#define _CNEN_CNEN4_LENGTH 0x00000001
#define _CNEN_CNEN5_POSITION 0x00000005
#define _CNEN_CNEN5_MASK 0x00000020
#define _CNEN_CNEN5_LENGTH 0x00000001
#define _CNEN_CNEN6_POSITION 0x00000006
#define _CNEN_CNEN6_MASK 0x00000040
#define _CNEN_CNEN6_LENGTH 0x00000001
#define _CNEN_CNEN7_POSITION 0x00000007
#define _CNEN_CNEN7_MASK 0x00000080
#define _CNEN_CNEN7_LENGTH 0x00000001
#define _CNEN_CNEN8_POSITION 0x00000008
#define _CNEN_CNEN8_MASK 0x00000100
#define _CNEN_CNEN8_LENGTH 0x00000001
#define _CNEN_CNEN9_POSITION 0x00000009
#define _CNEN_CNEN9_MASK 0x00000200
#define _CNEN_CNEN9_LENGTH 0x00000001
#define _CNEN_CNEN10_POSITION 0x0000000A
#define _CNEN_CNEN10_MASK 0x00000400
#define _CNEN_CNEN10_LENGTH 0x00000001
#define _CNEN_CNEN11_POSITION 0x0000000B
#define _CNEN_CNEN11_MASK 0x00000800
#define _CNEN_CNEN11_LENGTH 0x00000001
#define _CNEN_CNEN12_POSITION 0x0000000C
#define _CNEN_CNEN12_MASK 0x00001000
#define _CNEN_CNEN12_LENGTH 0x00000001
#define _CNEN_CNEN13_POSITION 0x0000000D
#define _CNEN_CNEN13_MASK 0x00002000
#define _CNEN_CNEN13_LENGTH 0x00000001
#define _CNEN_CNEN14_POSITION 0x0000000E
#define _CNEN_CNEN14_MASK 0x00004000
#define _CNEN_CNEN14_LENGTH 0x00000001
#define _CNEN_CNEN15_POSITION 0x0000000F
#define _CNEN_CNEN15_MASK 0x00008000
#define _CNEN_CNEN15_LENGTH 0x00000001
#define _CNEN_CNEN16_POSITION 0x00000010
#define _CNEN_CNEN16_MASK 0x00010000
#define _CNEN_CNEN16_LENGTH 0x00000001
#define _CNEN_CNEN17_POSITION 0x00000011
#define _CNEN_CNEN17_MASK 0x00020000
#define _CNEN_CNEN17_LENGTH 0x00000001
#define _CNEN_CNEN18_POSITION 0x00000012
#define _CNEN_CNEN18_MASK 0x00040000
#define _CNEN_CNEN18_LENGTH 0x00000001
#define _CNEN_CNEN19_POSITION 0x00000013
#define _CNEN_CNEN19_MASK 0x00080000
#define _CNEN_CNEN19_LENGTH 0x00000001
#define _CNEN_CNEN20_POSITION 0x00000014
#define _CNEN_CNEN20_MASK 0x00100000
#define _CNEN_CNEN20_LENGTH 0x00000001
#define _CNEN_CNEN21_POSITION 0x00000015
#define _CNEN_CNEN21_MASK 0x00200000
#define _CNEN_CNEN21_LENGTH 0x00000001
#define _CNEN_w_POSITION 0x00000000
#define _CNEN_w_MASK 0xFFFFFFFF
#define _CNEN_w_LENGTH 0x00000020
#define _CNPUE_CNPUE0_POSITION 0x00000000
#define _CNPUE_CNPUE0_MASK 0x00000001
#define _CNPUE_CNPUE0_LENGTH 0x00000001
#define _CNPUE_CNPUE1_POSITION 0x00000001
#define _CNPUE_CNPUE1_MASK 0x00000002
#define _CNPUE_CNPUE1_LENGTH 0x00000001
#define _CNPUE_CNPUE2_POSITION 0x00000002
#define _CNPUE_CNPUE2_MASK 0x00000004
#define _CNPUE_CNPUE2_LENGTH 0x00000001
#define _CNPUE_CNPUE3_POSITION 0x00000003
#define _CNPUE_CNPUE3_MASK 0x00000008
#define _CNPUE_CNPUE3_LENGTH 0x00000001
#define _CNPUE_CNPUE4_POSITION 0x00000004
#define _CNPUE_CNPUE4_MASK 0x00000010
#define _CNPUE_CNPUE4_LENGTH 0x00000001
#define _CNPUE_CNPUE5_POSITION 0x00000005
#define _CNPUE_CNPUE5_MASK 0x00000020
#define _CNPUE_CNPUE5_LENGTH 0x00000001
#define _CNPUE_CNPUE6_POSITION 0x00000006
#define _CNPUE_CNPUE6_MASK 0x00000040
#define _CNPUE_CNPUE6_LENGTH 0x00000001
#define _CNPUE_CNPUE7_POSITION 0x00000007
#define _CNPUE_CNPUE7_MASK 0x00000080
#define _CNPUE_CNPUE7_LENGTH 0x00000001
#define _CNPUE_CNPUE8_POSITION 0x00000008
#define _CNPUE_CNPUE8_MASK 0x00000100
#define _CNPUE_CNPUE8_LENGTH 0x00000001
#define _CNPUE_CNPUE9_POSITION 0x00000009
#define _CNPUE_CNPUE9_MASK 0x00000200
#define _CNPUE_CNPUE9_LENGTH 0x00000001
#define _CNPUE_CNPUE10_POSITION 0x0000000A
#define _CNPUE_CNPUE10_MASK 0x00000400
#define _CNPUE_CNPUE10_LENGTH 0x00000001
#define _CNPUE_CNPUE11_POSITION 0x0000000B
#define _CNPUE_CNPUE11_MASK 0x00000800
#define _CNPUE_CNPUE11_LENGTH 0x00000001
#define _CNPUE_CNPUE12_POSITION 0x0000000C
#define _CNPUE_CNPUE12_MASK 0x00001000
#define _CNPUE_CNPUE12_LENGTH 0x00000001
#define _CNPUE_CNPUE13_POSITION 0x0000000D
#define _CNPUE_CNPUE13_MASK 0x00002000
#define _CNPUE_CNPUE13_LENGTH 0x00000001
#define _CNPUE_CNPUE14_POSITION 0x0000000E
#define _CNPUE_CNPUE14_MASK 0x00004000
#define _CNPUE_CNPUE14_LENGTH 0x00000001
#define _CNPUE_CNPUE15_POSITION 0x0000000F
#define _CNPUE_CNPUE15_MASK 0x00008000
#define _CNPUE_CNPUE15_LENGTH 0x00000001
#define _CNPUE_CNPUE16_POSITION 0x00000010
#define _CNPUE_CNPUE16_MASK 0x00010000
#define _CNPUE_CNPUE16_LENGTH 0x00000001
#define _CNPUE_CNPUE17_POSITION 0x00000011
#define _CNPUE_CNPUE17_MASK 0x00020000
#define _CNPUE_CNPUE17_LENGTH 0x00000001
#define _CNPUE_CNPUE18_POSITION 0x00000012
#define _CNPUE_CNPUE18_MASK 0x00040000
#define _CNPUE_CNPUE18_LENGTH 0x00000001
#define _CNPUE_CNPUE19_POSITION 0x00000013
#define _CNPUE_CNPUE19_MASK 0x00080000
#define _CNPUE_CNPUE19_LENGTH 0x00000001
#define _CNPUE_CNPUE20_POSITION 0x00000014
#define _CNPUE_CNPUE20_MASK 0x00100000
#define _CNPUE_CNPUE20_LENGTH 0x00000001
#define _CNPUE_CNPUE21_POSITION 0x00000015
#define _CNPUE_CNPUE21_MASK 0x00200000
#define _CNPUE_CNPUE21_LENGTH 0x00000001
#define _CNPUE_w_POSITION 0x00000000
#define _CNPUE_w_MASK 0xFFFFFFFF
#define _CNPUE_w_LENGTH 0x00000020
#define _DEVCFG3_USERID_POSITION 0x00000000
#define _DEVCFG3_USERID_MASK 0x0000FFFF
#define _DEVCFG3_USERID_LENGTH 0x00000010
#define _DEVCFG3_w_POSITION 0x00000000
#define _DEVCFG3_w_MASK 0xFFFFFFFF
#define _DEVCFG3_w_LENGTH 0x00000020
#define _DEVCFG2_FPLLIDIV_POSITION 0x00000000
#define _DEVCFG2_FPLLIDIV_MASK 0x00000007
#define _DEVCFG2_FPLLIDIV_LENGTH 0x00000003
#define _DEVCFG2_FPLLMUL_POSITION 0x00000004
#define _DEVCFG2_FPLLMUL_MASK 0x00000070
#define _DEVCFG2_FPLLMUL_LENGTH 0x00000003
#define _DEVCFG2_FPLLODIV_POSITION 0x00000010
#define _DEVCFG2_FPLLODIV_MASK 0x00070000
#define _DEVCFG2_FPLLODIV_LENGTH 0x00000003
#define _DEVCFG2_w_POSITION 0x00000000
#define _DEVCFG2_w_MASK 0xFFFFFFFF
#define _DEVCFG2_w_LENGTH 0x00000020
#define _DEVCFG1_FNOSC_POSITION 0x00000000
#define _DEVCFG1_FNOSC_MASK 0x00000007
#define _DEVCFG1_FNOSC_LENGTH 0x00000003
#define _DEVCFG1_FSOSCEN_POSITION 0x00000005
#define _DEVCFG1_FSOSCEN_MASK 0x00000020
#define _DEVCFG1_FSOSCEN_LENGTH 0x00000001
#define _DEVCFG1_IESO_POSITION 0x00000007
#define _DEVCFG1_IESO_MASK 0x00000080
#define _DEVCFG1_IESO_LENGTH 0x00000001
#define _DEVCFG1_POSCMOD_POSITION 0x00000008
#define _DEVCFG1_POSCMOD_MASK 0x00000300
#define _DEVCFG1_POSCMOD_LENGTH 0x00000002
#define _DEVCFG1_OSCIOFNC_POSITION 0x0000000A
#define _DEVCFG1_OSCIOFNC_MASK 0x00000400
#define _DEVCFG1_OSCIOFNC_LENGTH 0x00000001
#define _DEVCFG1_FPBDIV_POSITION 0x0000000C
#define _DEVCFG1_FPBDIV_MASK 0x00003000
#define _DEVCFG1_FPBDIV_LENGTH 0x00000002
#define _DEVCFG1_FCKSM_POSITION 0x0000000E
#define _DEVCFG1_FCKSM_MASK 0x0000C000
#define _DEVCFG1_FCKSM_LENGTH 0x00000002
#define _DEVCFG1_WDTPS_POSITION 0x00000010
#define _DEVCFG1_WDTPS_MASK 0x001F0000
#define _DEVCFG1_WDTPS_LENGTH 0x00000005
#define _DEVCFG1_FWDTEN_POSITION 0x00000017
#define _DEVCFG1_FWDTEN_MASK 0x00800000
#define _DEVCFG1_FWDTEN_LENGTH 0x00000001
#define _DEVCFG1_w_POSITION 0x00000000
#define _DEVCFG1_w_MASK 0xFFFFFFFF
#define _DEVCFG1_w_LENGTH 0x00000020
#define _DEVCFG0_DEBUG_POSITION 0x00000000
#define _DEVCFG0_DEBUG_MASK 0x00000003
#define _DEVCFG0_DEBUG_LENGTH 0x00000002
#define _DEVCFG0_ICESEL_POSITION 0x00000003
#define _DEVCFG0_ICESEL_MASK 0x00000008
#define _DEVCFG0_ICESEL_LENGTH 0x00000001
#define _DEVCFG0_PWP_POSITION 0x0000000C
#define _DEVCFG0_PWP_MASK 0x000FF000
#define _DEVCFG0_PWP_LENGTH 0x00000008
#define _DEVCFG0_BWP_POSITION 0x00000018
#define _DEVCFG0_BWP_MASK 0x01000000
#define _DEVCFG0_BWP_LENGTH 0x00000001
#define _DEVCFG0_CP_POSITION 0x0000001C
#define _DEVCFG0_CP_MASK 0x10000000
#define _DEVCFG0_CP_LENGTH 0x00000001
#define _DEVCFG0_FDEBUG_POSITION 0x00000000
#define _DEVCFG0_FDEBUG_MASK 0x00000003
#define _DEVCFG0_FDEBUG_LENGTH 0x00000002
#define _DEVCFG0_w_POSITION 0x00000000
#define _DEVCFG0_w_MASK 0xFFFFFFFF
#define _DEVCFG0_w_LENGTH 0x00000020
/* Vector Numbers */
#define _CORE_TIMER_VECTOR 0
#define _CORE_SOFTWARE_0_VECTOR 1
#define _CORE_SOFTWARE_1_VECTOR 2
#define _EXTERNAL_0_VECTOR 3
#define _EXTERNAL_1_VECTOR 7
#define _EXTERNAL_2_VECTOR 11
#define _EXTERNAL_3_VECTOR 15
#define _EXTERNAL_4_VECTOR 19
#define _TIMER_1_VECTOR 4
#define _TIMER_2_VECTOR 8
#define _TIMER_3_VECTOR 12
#define _TIMER_4_VECTOR 16
#define _TIMER_5_VECTOR 20
#define _CHANGE_NOTICE_VECTOR 26
#define _INPUT_CAPTURE_1_VECTOR 5
#define _INPUT_CAPTURE_2_VECTOR 9
#define _INPUT_CAPTURE_3_VECTOR 13
#define _INPUT_CAPTURE_4_VECTOR 17
#define _INPUT_CAPTURE_5_VECTOR 21
#define _OUTPUT_COMPARE_1_VECTOR 6
#define _OUTPUT_COMPARE_2_VECTOR 10
#define _OUTPUT_COMPARE_3_VECTOR 14
#define _OUTPUT_COMPARE_4_VECTOR 18
#define _OUTPUT_COMPARE_5_VECTOR 22
#define _SPI_1_VECTOR 23
#define _UART_1_VECTOR 24
#define _I2C_1_VECTOR 25
#define _SPI_2_VECTOR 31
#define _UART_2_VECTOR 32
#define _I2C_2_VECTOR 33
#define _COMPARATOR_1_VECTOR 29
#define _COMPARATOR_2_VECTOR 30
#define _ADC_VECTOR 27
#define _PMP_VECTOR 28
#define _FAIL_SAFE_MONITOR_VECTOR 34
#define _RTCC_VECTOR 35
#define _FCE_VECTOR 44
#define _DMA_0_VECTOR 36
#define _DMA_1_VECTOR 37
#define _DMA_2_VECTOR 38
#define _DMA_3_VECTOR 39
/* IRQ Numbers */
#define _CORE_TIMER_IRQ 0
#define _CORE_SOFTWARE_0_IRQ 1
#define _CORE_SOFTWARE_1_IRQ 2
#define _EXTERNAL_0_IRQ 3
#define _TIMER_1_IRQ 4
#define _INPUT_CAPTURE_1_IRQ 5
#define _OUTPUT_COMPARE_1_IRQ 6
#define _EXTERNAL_1_IRQ 7
#define _TIMER_2_IRQ 8
#define _INPUT_CAPTURE_2_IRQ 9
#define _OUTPUT_COMPARE_2_IRQ 10
#define _EXTERNAL_2_IRQ 11
#define _TIMER_3_IRQ 12
#define _INPUT_CAPTURE_3_IRQ 13
#define _OUTPUT_COMPARE_3_IRQ 14
#define _EXTERNAL_3_IRQ 15
#define _TIMER_4_IRQ 16
#define _INPUT_CAPTURE_4_IRQ 17
#define _OUTPUT_COMPARE_4_IRQ 18
#define _EXTERNAL_4_IRQ 19
#define _TIMER_5_IRQ 20
#define _INPUT_CAPTURE_5_IRQ 21
#define _OUTPUT_COMPARE_5_IRQ 22
#define _SPI1_ERR_IRQ 23
#define _SPI1_TX_IRQ 24
#define _SPI1_RX_IRQ 25
#define _UART1_ERR_IRQ 26
#define _UART1_RX_IRQ 27
#define _UART1_TX_IRQ 28
#define _I2C1_BUS_IRQ 29
#define _I2C1_SLAVE_IRQ 30
#define _I2C1_MASTER_IRQ 31
#define _CHANGE_NOTICE_IRQ 32
#define _ADC_IRQ 33
#define _PMP_IRQ 34
#define _COMPARATOR_1_IRQ 35
#define _COMPARATOR_2_IRQ 36
#define _SPI2_ERR_IRQ 37
#define _SPI2_TX_IRQ 38
#define _SPI2_RX_IRQ 39
#define _UART2_ERR_IRQ 40
#define _UART2_RX_IRQ 41
#define _UART2_TX_IRQ 42
#define _I2C2_BUS_IRQ 43
#define _I2C2_SLAVE_IRQ 44
#define _I2C2_MASTER_IRQ 45
#define _FAIL_SAFE_MONITOR_IRQ 46
#define _RTCC_IRQ 47
#define _DMA0_IRQ 48
#define _DMA1_IRQ 49
#define _DMA2_IRQ 50
#define _DMA3_IRQ 51
#define _FLASH_CONTROL_IRQ 56
/* Device Peripherals */
#define _ADC10
#define _BMX
#define _CFG
#define _CMP
#define _CVR
#define _DMAC
#define _DMAC0
#define _DMAC1
#define _DMAC2
#define _DMAC3
#define _I2C1
#define _I2C2
#define _ICAP1
#define _ICAP2
#define _ICAP3
#define _ICAP4
#define _ICAP5
#define _INT
#define _NVM
#define _OCMP1
#define _OCMP2
#define _OCMP3
#define _OCMP4
#define _OCMP5
#define _OSC
#define _PCACHE
#define _PMP
#define _PORTA
#define _PORTB
#define _PORTC
#define _PORTD
#define _PORTE
#define _PORTF
#define _PORTG
#define _RCON
#define _RTCC
#define _SPI1
#define _SPI2
#define _TMR1
#define _TMR2
#define _TMR23
#define _TMR3
#define _TMR4
#define _TMR45
#define _TMR5
#define _UART1
#define _UART2
#define _WDT
#define __APPI
#define __APPO
#define __DDPSTAT
#define __STRO
/* Base Addresses for Peripherals */
#define _ADC10_BASE_ADDRESS 0xBF809000
#define _BMX_BASE_ADDRESS 0xBF882000
#define _CFG_BASE_ADDRESS 0xBF80F200
#define _CMP_BASE_ADDRESS 0xBF80A000
#define _CVR_BASE_ADDRESS 0xBF809800
#define _DMAC_BASE_ADDRESS 0xBF883000
#define _DMAC0_BASE_ADDRESS 0xBF883060
#define _DMAC1_BASE_ADDRESS 0xBF883120
#define _DMAC2_BASE_ADDRESS 0xBF8831E0
#define _DMAC3_BASE_ADDRESS 0xBF8832A0
#define _I2C1_BASE_ADDRESS 0xBF805000
#define _I2C2_BASE_ADDRESS 0xBF805200
#define _ICAP1_BASE_ADDRESS 0xBF802000
#define _ICAP2_BASE_ADDRESS 0xBF802200
#define _ICAP3_BASE_ADDRESS 0xBF802400
#define _ICAP4_BASE_ADDRESS 0xBF802600
#define _ICAP5_BASE_ADDRESS 0xBF802800
#define _INT_BASE_ADDRESS 0xBF881000
#define _NVM_BASE_ADDRESS 0xBF80F400
#define _OCMP1_BASE_ADDRESS 0xBF803000
#define _OCMP2_BASE_ADDRESS 0xBF803200
#define _OCMP3_BASE_ADDRESS 0xBF803400
#define _OCMP4_BASE_ADDRESS 0xBF803600
#define _OCMP5_BASE_ADDRESS 0xBF803800
#define _OSC_BASE_ADDRESS 0xBF80F000
#define _PCACHE_BASE_ADDRESS 0xBF884000
#define _PMP_BASE_ADDRESS 0xBF807000
#define _PORTA_BASE_ADDRESS 0xBF886000
#define _PORTB_BASE_ADDRESS 0xBF886040
#define _PORTC_BASE_ADDRESS 0xBF886080
#define _PORTD_BASE_ADDRESS 0xBF8860C0
#define _PORTE_BASE_ADDRESS 0xBF886100
#define _PORTF_BASE_ADDRESS 0xBF886140
#define _PORTG_BASE_ADDRESS 0xBF886180
#define _RCON_BASE_ADDRESS 0xBF80F600
#define _RTCC_BASE_ADDRESS 0xBF800200
#define _SPI1_BASE_ADDRESS 0xBF805800
#define _SPI2_BASE_ADDRESS 0xBF805A00
#define _TMR1_BASE_ADDRESS 0xBF800600
#define _TMR2_BASE_ADDRESS 0xBF800800
#define _TMR23_BASE_ADDRESS 0xBF800800
#define _TMR3_BASE_ADDRESS 0xBF800A00
#define _TMR4_BASE_ADDRESS 0xBF800C00
#define _TMR45_BASE_ADDRESS 0xBF800C00
#define _TMR5_BASE_ADDRESS 0xBF800E00
#define _UART1_BASE_ADDRESS 0xBF806000
#define _UART2_BASE_ADDRESS 0xBF806200
#define _WDT_BASE_ADDRESS 0xBF800000
#define __APPI_BASE_ADDRESS 0xBF880190
#define __APPO_BASE_ADDRESS 0xBF880180
#define __DDPSTAT_BASE_ADDRESS 0xBF880140
#define __STRO_BASE_ADDRESS 0xBF880170
/* The following device macros are predefined by the MPLAB XC32
* compiler when compiling with the -mprocessor=<device> option.
* We also define them here to help the MPLAB X editor evaluate
* them correctly.
*/
#ifndef __32MX340F128L
# define __32MX340F128L 1
#endif
#ifndef __32MX340F128L__
# define __32MX340F128L__ 1
#endif
#ifndef __PIC32MX
# define __PIC32MX 1
#endif
#ifndef __PIC32MX__
# define __PIC32MX__ 1
#endif
#ifndef __PIC32_FEATURE_SET
# define __PIC32_FEATURE_SET 340
#endif
#ifndef __PIC32_FEATURE_SET__
# define __PIC32_FEATURE_SET__ 340
#endif
#ifndef __PIC32_MEMORY_SIZE
# define __PIC32_MEMORY_SIZE 128
#endif
#ifndef __PIC32_MEMORY_SIZE__
# define __PIC32_MEMORY_SIZE__ 128
#endif
#ifndef __PIC32_PIN_SET
# define __PIC32_PIN_SET 'L'
#endif
#ifndef __PIC32_PIN_SET__
# define __PIC32_PIN_SET__ 'L'
#endif
/* The following device macros indicate which core features are
* available on this device.
*/
#ifndef __PIC32_HAS_MIPS32R2
# define __PIC32_HAS_MIPS32R2 1
#endif
#ifndef __PIC32_HAS_MIPS16
# define __PIC32_HAS_MIPS16 1
#endif
/* include generic header file for backwards compatibility with old C32 v1.xx code */
/* WARNING: Macros from this file are deprecated and should not be used in new */
/* source code. */
#include "ppic32mx.h"
#endif
|
biomurph/chipKIT-core-prebuilt
|
windows/chipkit-core/pic32/compiler/pic32-tools/pic32mx/include/proc/p32mx340f128l.h
|
C
|
mit
| 461,248 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Timers;
using Xamarin.Forms;
namespace CouchbaseConnect2014.Controls
{
public class CarouselLayout : ScrollView
{
readonly StackLayout _stack;
Timer _selectedItemTimer;
int _selectedIndex;
public CarouselLayout ()
{
Orientation = ScrollOrientation.Horizontal;
_stack = new StackLayout {
Orientation = StackOrientation.Horizontal,
Spacing = 0
};
Content = _stack;
_selectedItemTimer = new Timer {
AutoReset = false,
Interval = 300
};
_selectedItemTimer.Elapsed += SelectedItemTimerElapsed;
}
public IList<View> Children {
get {
return _stack.Children;
}
}
private bool _layingOutChildren;
protected override void LayoutChildren (double x, double y, double width, double height)
{
base.LayoutChildren (x, y, width, height);
if (_layingOutChildren) return;
_layingOutChildren = true;
foreach (var child in Children) child.WidthRequest = width;
_layingOutChildren = false;
}
public static readonly BindableProperty SelectedIndexProperty =
BindableProperty.Create<CarouselLayout, int> (
carousel => carousel.SelectedIndex,
0,
BindingMode.TwoWay,
propertyChanged: (bindable, oldValue, newValue) => {
((CarouselLayout)bindable).UpdateSelectedItem ();
}
);
public int SelectedIndex {
get {
return (int)GetValue (SelectedIndexProperty);
}
set {
SetValue (SelectedIndexProperty, value);
}
}
void UpdateSelectedItem ()
{
_selectedItemTimer.Stop ();
_selectedItemTimer.Start ();
}
void SelectedItemTimerElapsed (object sender, ElapsedEventArgs e) {
SelectedItem = SelectedIndex > -1 ? Children [SelectedIndex].BindingContext : null;
}
public static readonly BindableProperty ItemsSourceProperty =
BindableProperty.Create<CarouselLayout, IList> (
view => view.ItemsSource,
null,
propertyChanging: (bindableObject, oldValue, newValue) => {
((CarouselLayout)bindableObject).ItemsSourceChanging ();
},
propertyChanged: (bindableObject, oldValue, newValue) => {
((CarouselLayout)bindableObject).ItemsSourceChanged ();
}
);
public IList ItemsSource {
get {
return (IList)GetValue (ItemsSourceProperty);
}
set {
SetValue (ItemsSourceProperty, value);
}
}
void ItemsSourceChanging ()
{
if (ItemsSource == null) return;
_selectedIndex = ItemsSource.IndexOf (SelectedItem);
}
void ItemsSourceChanged ()
{
_stack.Children.Clear ();
foreach (var item in ItemsSource) {
var view = (View)ItemTemplate.CreateContent ();
var bindableObject = view as BindableObject;
if (bindableObject != null)
bindableObject.BindingContext = item;
_stack.Children.Add (view);
}
if (_selectedIndex >= 0) SelectedIndex = _selectedIndex;
}
public DataTemplate ItemTemplate {
get;
set;
}
public static readonly BindableProperty SelectedItemProperty =
BindableProperty.Create<CarouselLayout, object> (
view => view.SelectedItem,
null,
BindingMode.TwoWay,
propertyChanged: (bindable, oldValue, newValue) => {
((CarouselLayout)bindable).UpdateSelectedIndex ();
}
);
public object SelectedItem {
get {
return GetValue (SelectedItemProperty);
}
set {
SetValue (SelectedItemProperty, value);
}
}
void UpdateSelectedIndex ()
{
if (SelectedItem == BindingContext) return;
SelectedIndex = Children
.Select (c => c.BindingContext)
.ToList ()
.IndexOf (SelectedItem);
}
}
}
|
vgvassilev/couchbase-connect-14
|
src/Shared.Front/Controls/CarouselLayout.cs
|
C#
|
mit
| 4,742 |
// +build !info,!debug,!trace,!warn,!error,!critical,!off
package build
// LogLevel specifies a default log level of info.
var LogLevel = "info"
|
aakselrod/lnd
|
build/loglevel_default.go
|
GO
|
mit
| 147 |
// Copyright (c) 2015 RAMBLER&Co
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/Foundation.h>
#import "ObjectTransformer.h"
/**
@author Egor Tolstoy
An <ObjectTransformer> for EventModelObject
*/
@interface EventObjectTransformer : NSObject <ObjectTransformer>
@end
|
rambler-ios/RamblerConferences
|
conferences/Classes/ApplicationLayer/SpotlightIndexer/ObjectTransformers/ConcreteClasses/EventObjectTransformer/EventObjectTransformer.h
|
C
|
mit
| 1,324 |
KinectManipulationUpdatedEventArgs.Position Property
====================================================
Gets the location of the pointer associated with the manipulation for the last manipulation event. <span id="syntaxSection"></span>
Syntax
======
<table>
<colgroup>
<col width="100%" />
</colgroup>
<thead>
<tr class="header">
<th align="left">C++</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td align="left"><pre><code>public:
property Point Position {
Point get ();
}</code></pre></td>
</tr>
</tbody>
</table>
<table>
<colgroup>
<col width="100%" />
</colgroup>
<thead>
<tr class="header">
<th align="left">C#</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td align="left"><pre><code>public Point Position { get; }</code></pre></td>
</tr>
</tbody>
</table>
<table>
<colgroup>
<col width="100%" />
</colgroup>
<thead>
<tr class="header">
<th align="left">JavaScript</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td align="left"><pre><code>var position = kinectManipulationUpdatedEventArgs.position;</code></pre></td>
</tr>
</tbody>
</table>
<span id="ID4ER"></span>
#### Property value
Type: [Point](http://msdn.microsoft.com/en-us/library/windows.foundation.point.aspx)
The screen coordinates, in device-independent pixels (DIPs).
<span id="requirements"></span>
Requirements
============
**Namespace:**WindowsPreview.Kinect.Input
**Metadata:**windowspreview.kinect.winmd
<span id="ID4E3"></span>
See also
========
<span id="ID4E5"></span>
#### Reference
[KinectManipulationUpdatedEventArgs Class](../../KinectManipulationUpdate.md)
[WindowsPreview.Kinect.Input Namespace](../../../Kinect.Input.md)
<!--Please do not edit the data in the comment block below.-->
<!--
TOCTitle : Position Property
RLTitle : KinectManipulationUpdatedEventArgs.Position Property
KeywordK : Position property
KeywordK : KinectManipulationUpdatedEventArgs.Position property
KeywordF : WindowsPreview.Kinect.Input.KinectManipulationUpdatedEventArgs.Position
KeywordF : KinectManipulationUpdatedEventArgs.Position
KeywordF : Position
KeywordF : WindowsPreview.Kinect.Input.KinectManipulationUpdatedEventArgs.Position
KeywordA : P:WindowsPreview.Kinect.Input.KinectManipulationUpdatedEventArgs.Position
AssetID : P:WindowsPreview.Kinect.Input.KinectManipulationUpdatedEventArgs.Position
Locale : en-us
CommunityContent : 1
APIType : Managed
APILocation : windowspreview.kinect.winmd
APIName : WindowsPreview.Kinect.Input.KinectManipulationUpdatedEventArgs.Position
TargetOS : Windows
TopicType : kbSyntax
DevLang : VB
DevLang : CSharp
DevLang : JavaScript
DevLang : C++
DocSet : K4Wv2
ProjType : K4Wv2Proj
Technology : Kinect for Windows
Product : Kinect for Windows SDK v2
productversion : 20
-->
|
Kinect/Docs
|
Kinect4Windows2.0/k4w2/Reference/Kinect_for_Windows_v2/Kinect.Input/KinectManipulationUpdate/Properties/Position_Property.md
|
Markdown
|
mit
| 2,745 |
/*
* Generated by class-dump 3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard.
*/
#import <IDEFoundation/IDEContainerPathRelativeReferenceResolutionStrategy.h>
@interface IDEContainerBuildProductsRelativeReferenceResolutionStrategy : IDEContainerPathRelativeReferenceResolutionStrategy
{
}
- (id)resolveInput:(id)arg1 forContainer:(id)arg2 group:(id)arg3 inContext:(id)arg4 usingSnapshot:(id)arg5 error:(id *)arg6;
@end
|
orta/AxeMode
|
XcodeHeaders/IDEFoundation/IDEContainerBuildProductsRelativeReferenceResolutionStrategy.h
|
C
|
mit
| 482 |
//Products service used to communicate Products REST endpoints
(function () {
'use strict';
angular
.module('products')
.factory('ProductsService', ProductsService);
ProductsService.$inject = ['$resource'];
function ProductsService($resource) {
return $resource('api/products/:productId', {
productId: '@_id'
}, {
update: {
method: 'PUT'
}
});
}
})();
|
feroj21/mean-shop
|
modules/products/client/services/products.client.service.js
|
JavaScript
|
mit
| 411 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Plugin: nonbreaking Demo Page</title>
</head>
<body>
<h2>Plugin: nonbreaking Demo Page</h2>
<div id="ephox-ui">
<textarea cols="30" rows="10" class="tinymce"></textarea>
</div>
<script src="../../../../../js/tinymce/tinymce.js"></script>
<script src="../../../../../scratch/demos/plugins/nonbreaking/demo.js"></script>
</body>
</html>
|
tinymce/tinymce
|
modules/tinymce/src/plugins/nonbreaking/demo/html/demo.html
|
HTML
|
mit
| 419 |
<div class="list-sample">
<article class="sample-column">
<span>Vertical Virtualization</span>
<br/>
<div style='height:500px;'>
<ng-template igxFor let-item [igxForOf]="data" #virtDirVertical
[igxForScrollOrientation]="'vertical'"
[igxForContainerSize]='"500px"'
[igxForItemSize]='"50px"'
let-rowIndex="index">
<div style='height:50px;'>{{rowIndex}} : {{item.text}}</div>
</ng-template>
</div>
<button (click)="scrNextRow()">Scroll Next Row</button>
<button (click)="scrPrevRow()">Scroll Prev Row</button>
<input (input)="scrScrollTo($event.target.value)" placeholder="scroll to index"/>
</article>
<article class="sample-column">
<span>Horizontal Virtualization</span>
<br/>
<table>
<tbody style='display:grid;'>
<tr style='width:500px; height:118px;'>
<ng-template igxFor let-item [igxForOf]="data" #virtDirHorizontal
[igxForScrollOrientation]="'horizontal'"
[igxForContainerSize]='"500px"'
let-rowIndex="index">
<td [style.width.px]='item.width' style='height:100px;'>{{rowIndex}} : {{item.text}}</td>
</ng-template>
</tr>
</tbody>
</table>
<button (click)="scrNextCol()">Scroll Next Column</button>
<button (click)="scrPrevCol()">Scroll Prev Column</button>
<input (input)="scrHorizontalScrollTo($event.target.value)" placeholder="scroll to index"/>
</article>
<article class="sample-column">
<span>Remote Virtualization</span>
<br/>
<div style='height:500px;'>
<ng-template igxFor let-item [igxForOf]="remoteData | async" (onChunkPreload)="chunkLoading($event)"
[igxForScrollOrientation]="'vertical'"
[igxForContainerSize]='"500px"'
[igxForItemSize]='"50px"'
[igxForRemote]='true'
let-rowIndex="index" #virtDirRemote>
<div style='height:50px;'>{{item.ProductID}} : {{item.ProductName}}</div>
</ng-template>
</div>
</article>
</div>
|
simeonoff/zero-blocks
|
demos/app/virtual-for-directive/sample.component.html
|
HTML
|
mit
| 2,438 |
import {Hero} from "./hero";
export var HEROES: Hero[] = [
{ "id": 11, "name": "Mr. Nice" },
{ "id": 12, "name": "Narco" },
{ "id": 13, "name": "Bombasto" },
{ "id": 14, "name": "Celeritas" },
{ "id": 15, "name": "Magneta" },
{ "id": 16, "name": "RubberMan" },
{ "id": 17, "name": "Dynama" },
{ "id": 18, "name": "Dr IQ" },
{ "id": 19, "name": "Magma" },
{ "id": 20, "name": "Tornado" }
];
|
Sufflavus/AngularExamples
|
3_TourOfHeroes/ts/app/mock-heroes.ts
|
TypeScript
|
mit
| 423 |
/**
* Toolbar with menus providing quick access to class members.
*/
Ext.define('Docs.OverviewToolbar', {
extend: 'Ext.toolbar.Toolbar',
dock: 'top',
cls: 'member-links',
padding: '3 5',
/**
* @cfg {Object} docClass
* Documentation for a class.
*/
docClass: {},
initComponent: function() {
this.items = [];
var memberTitles = {
cfg: "Configs",
property: "Properties",
method: "Methods",
event: "Events"
};
for (var type in memberTitles) {
var members = this.docClass[type];
if (members.length) {
this.items.push(this.createMemberButton({
items: members,
type: type,
title: memberTitles[type]
}));
}
}
if (this.docClass.subclasses.length) {
this.items.push(this.createSubClassesButton({
items: this.docClass.subclasses,
title: "Sub Classes"
}));
}
this.items = this.items.concat([
{ xtype: 'tbfill' },
{
boxLabel: 'Hide inherited',
boxLabelAlign: 'before',
xtype: 'checkbox',
margin: '0 5 0 0',
padding: '0 0 5 0',
handler: this.hideInherited
},
{
xtype: 'button',
iconCls: 'expandAllMembers',
tooltip: "Expand all",
handler: function() {
Ext.Array.forEach(Ext.query('.side.expandable'), function(el) {
Ext.get(el).parent().addCls('open');
});
}
},
{
xtype: 'button',
iconCls: 'collapseAllMembers',
tooltip: "Collapse all",
handler: function() {
Ext.Array.forEach(Ext.query('.side.expandable'), function(el) {
Ext.get(el).parent().removeCls('open');
});
}
}
]);
this.callParent(arguments);
},
createMemberButton: function(cfg) {
var menu = Ext.create('Ext.menu.Menu', {
items: Ext.Array.map(cfg.items, function(m) {
return {
text: m.name,
memberName: cfg.type + '-' + m.name
};
}),
plain: true,
listeners: {
click: function(menu, item) {
Ext.getCmp('doc-overview').scrollToEl("#" + item.memberName);
}
}
});
return Ext.create('Ext.button.Split', {
cls: cfg.type,
iconCls: 'icon-' + cfg.type,
text: cfg.title + ' <span class="num">' + cfg.items.length + '</span>',
listeners: {
click: function() {
Ext.getCmp('doc-overview').scrollToEl("#m-" + cfg.type);
}
},
menu: menu
});
},
createSubClassesButton: function(cfg) {
var menu = Ext.create('Ext.menu.Menu', {
items: Ext.Array.map(cfg.items, function(className) {
return {text: className, clsName: className};
}),
plain: true,
listeners: {
click: function(menu, item) {
Docs.ClassLoader.load(item.clsName);
}
}
});
return Ext.create('Ext.button.Button', {
cls: 'subcls',
iconCls: 'icon-subclass',
text: cfg.title + ' <span class="num">' + cfg.items.length + '</span>',
menu: menu
});
},
hideInherited: function(el) {
var hide = el.checked;
// show/hide all inherited members
Ext.Array.forEach(Ext.query('.member.inherited'), function(m) {
Ext.get(m).setStyle({display: hide ? 'none' : 'block'});
});
// Remove all first-child classes
Ext.Array.forEach(Ext.query('.member.first-child'), function(m) {
Ext.get(m).removeCls('first-child');
});
Ext.Array.forEach(['cfg', 'property', 'method', 'event'], function(m) {
var sectionId = '#m-' + m;
// Hide the section completely if all items in it are inherited
if (Ext.query(sectionId+' .member.not-inherited').length === 0) {
var section = Ext.query(sectionId)[0];
section && Ext.get(section).setStyle({display: hide ? 'none' : 'block'});
}
// add first-child class to first member in section
var sectionMembers = Ext.query(sectionId+' .member' + (hide ? ".not-inherited" : ""));
if (sectionMembers.length > 0) {
Ext.get(sectionMembers[0]).addCls('first-child');
}
});
}
});
|
flyboarder/AirOS_pre2.0
|
web/extjs/4.0.1/docs/js/OverviewToolbar.js
|
JavaScript
|
mit
| 5,023 |
/* libstemmer/modules.h: List of stemming modules.
*
* This file is generated by mkmodules.pl from a list of module names.
* Do not edit manually.
*
* Modules included by this file are: danish, dutch, english, finnish, french,
* german, hungarian, italian, norwegian, porter, portuguese, romanian,
* russian, spanish, swedish, turkish
*/
#include "stem_ISO_8859_1_danish.h"
#include "stem_UTF_8_danish.h"
#include "stem_ISO_8859_1_dutch.h"
#include "stem_UTF_8_dutch.h"
#include "stem_ISO_8859_1_english.h"
#include "stem_UTF_8_english.h"
#include "stem_ISO_8859_1_finnish.h"
#include "stem_UTF_8_finnish.h"
#include "stem_ISO_8859_1_french.h"
#include "stem_UTF_8_french.h"
#include "stem_ISO_8859_1_german.h"
#include "stem_UTF_8_german.h"
#include "stem_ISO_8859_1_hungarian.h"
#include "stem_UTF_8_hungarian.h"
#include "stem_ISO_8859_1_italian.h"
#include "stem_UTF_8_italian.h"
#include "stem_ISO_8859_1_norwegian.h"
#include "stem_UTF_8_norwegian.h"
#include "stem_ISO_8859_1_porter.h"
#include "stem_UTF_8_porter.h"
#include "stem_ISO_8859_1_portuguese.h"
#include "stem_UTF_8_portuguese.h"
#include "stem_ISO_8859_2_romanian.h"
#include "stem_UTF_8_romanian.h"
#include "stem_KOI8_R_russian.h"
#include "stem_UTF_8_russian.h"
#include "stem_ISO_8859_1_spanish.h"
#include "stem_UTF_8_spanish.h"
#include "stem_ISO_8859_1_swedish.h"
#include "stem_UTF_8_swedish.h"
#include "stem_UTF_8_turkish.h"
typedef enum {
ENC_UNKNOWN=0,
ENC_ISO_8859_1,
ENC_ISO_8859_2,
ENC_KOI8_R,
ENC_UTF_8
} stemmer_encoding_t;
struct stemmer_encoding {
const char * name;
stemmer_encoding_t enc;
};
static struct stemmer_encoding encodings[] = {
{"ISO_8859_1", ENC_ISO_8859_1},
{"ISO_8859_2", ENC_ISO_8859_2},
{"KOI8_R", ENC_KOI8_R},
{"UTF_8", ENC_UTF_8},
{0,ENC_UNKNOWN}
};
struct stemmer_modules {
const char * name;
stemmer_encoding_t enc;
struct SN_env * (*create)(void);
void (*close)(struct SN_env *);
int (*stem)(struct SN_env *);
};
static struct stemmer_modules modules[] = {
{"da", ENC_ISO_8859_1, danish_ISO_8859_1_create_env, danish_ISO_8859_1_close_env, danish_ISO_8859_1_stem},
{"da", ENC_UTF_8, danish_UTF_8_create_env, danish_UTF_8_close_env, danish_UTF_8_stem},
{"dan", ENC_ISO_8859_1, danish_ISO_8859_1_create_env, danish_ISO_8859_1_close_env, danish_ISO_8859_1_stem},
{"dan", ENC_UTF_8, danish_UTF_8_create_env, danish_UTF_8_close_env, danish_UTF_8_stem},
{"danish", ENC_ISO_8859_1, danish_ISO_8859_1_create_env, danish_ISO_8859_1_close_env, danish_ISO_8859_1_stem},
{"danish", ENC_UTF_8, danish_UTF_8_create_env, danish_UTF_8_close_env, danish_UTF_8_stem},
{"de", ENC_ISO_8859_1, german_ISO_8859_1_create_env, german_ISO_8859_1_close_env, german_ISO_8859_1_stem},
{"de", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
{"deu", ENC_ISO_8859_1, german_ISO_8859_1_create_env, german_ISO_8859_1_close_env, german_ISO_8859_1_stem},
{"deu", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
{"dut", ENC_ISO_8859_1, dutch_ISO_8859_1_create_env, dutch_ISO_8859_1_close_env, dutch_ISO_8859_1_stem},
{"dut", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
{"dutch", ENC_ISO_8859_1, dutch_ISO_8859_1_create_env, dutch_ISO_8859_1_close_env, dutch_ISO_8859_1_stem},
{"dutch", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
{"en", ENC_ISO_8859_1, english_ISO_8859_1_create_env, english_ISO_8859_1_close_env, english_ISO_8859_1_stem},
{"en", ENC_UTF_8, english_UTF_8_create_env, english_UTF_8_close_env, english_UTF_8_stem},
{"eng", ENC_ISO_8859_1, english_ISO_8859_1_create_env, english_ISO_8859_1_close_env, english_ISO_8859_1_stem},
{"eng", ENC_UTF_8, english_UTF_8_create_env, english_UTF_8_close_env, english_UTF_8_stem},
{"english", ENC_ISO_8859_1, english_ISO_8859_1_create_env, english_ISO_8859_1_close_env, english_ISO_8859_1_stem},
{"english", ENC_UTF_8, english_UTF_8_create_env, english_UTF_8_close_env, english_UTF_8_stem},
{"es", ENC_ISO_8859_1, spanish_ISO_8859_1_create_env, spanish_ISO_8859_1_close_env, spanish_ISO_8859_1_stem},
{"es", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
{"esl", ENC_ISO_8859_1, spanish_ISO_8859_1_create_env, spanish_ISO_8859_1_close_env, spanish_ISO_8859_1_stem},
{"esl", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
{"fi", ENC_ISO_8859_1, finnish_ISO_8859_1_create_env, finnish_ISO_8859_1_close_env, finnish_ISO_8859_1_stem},
{"fi", ENC_UTF_8, finnish_UTF_8_create_env, finnish_UTF_8_close_env, finnish_UTF_8_stem},
{"fin", ENC_ISO_8859_1, finnish_ISO_8859_1_create_env, finnish_ISO_8859_1_close_env, finnish_ISO_8859_1_stem},
{"fin", ENC_UTF_8, finnish_UTF_8_create_env, finnish_UTF_8_close_env, finnish_UTF_8_stem},
{"finnish", ENC_ISO_8859_1, finnish_ISO_8859_1_create_env, finnish_ISO_8859_1_close_env, finnish_ISO_8859_1_stem},
{"finnish", ENC_UTF_8, finnish_UTF_8_create_env, finnish_UTF_8_close_env, finnish_UTF_8_stem},
{"fr", ENC_ISO_8859_1, french_ISO_8859_1_create_env, french_ISO_8859_1_close_env, french_ISO_8859_1_stem},
{"fr", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
{"fra", ENC_ISO_8859_1, french_ISO_8859_1_create_env, french_ISO_8859_1_close_env, french_ISO_8859_1_stem},
{"fra", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
{"fre", ENC_ISO_8859_1, french_ISO_8859_1_create_env, french_ISO_8859_1_close_env, french_ISO_8859_1_stem},
{"fre", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
{"french", ENC_ISO_8859_1, french_ISO_8859_1_create_env, french_ISO_8859_1_close_env, french_ISO_8859_1_stem},
{"french", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
{"ger", ENC_ISO_8859_1, german_ISO_8859_1_create_env, german_ISO_8859_1_close_env, german_ISO_8859_1_stem},
{"ger", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
{"german", ENC_ISO_8859_1, german_ISO_8859_1_create_env, german_ISO_8859_1_close_env, german_ISO_8859_1_stem},
{"german", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
{"hu", ENC_ISO_8859_1, hungarian_ISO_8859_1_create_env, hungarian_ISO_8859_1_close_env, hungarian_ISO_8859_1_stem},
{"hu", ENC_UTF_8, hungarian_UTF_8_create_env, hungarian_UTF_8_close_env, hungarian_UTF_8_stem},
{"hun", ENC_ISO_8859_1, hungarian_ISO_8859_1_create_env, hungarian_ISO_8859_1_close_env, hungarian_ISO_8859_1_stem},
{"hun", ENC_UTF_8, hungarian_UTF_8_create_env, hungarian_UTF_8_close_env, hungarian_UTF_8_stem},
{"hungarian", ENC_ISO_8859_1, hungarian_ISO_8859_1_create_env, hungarian_ISO_8859_1_close_env, hungarian_ISO_8859_1_stem},
{"hungarian", ENC_UTF_8, hungarian_UTF_8_create_env, hungarian_UTF_8_close_env, hungarian_UTF_8_stem},
{"it", ENC_ISO_8859_1, italian_ISO_8859_1_create_env, italian_ISO_8859_1_close_env, italian_ISO_8859_1_stem},
{"it", ENC_UTF_8, italian_UTF_8_create_env, italian_UTF_8_close_env, italian_UTF_8_stem},
{"ita", ENC_ISO_8859_1, italian_ISO_8859_1_create_env, italian_ISO_8859_1_close_env, italian_ISO_8859_1_stem},
{"ita", ENC_UTF_8, italian_UTF_8_create_env, italian_UTF_8_close_env, italian_UTF_8_stem},
{"italian", ENC_ISO_8859_1, italian_ISO_8859_1_create_env, italian_ISO_8859_1_close_env, italian_ISO_8859_1_stem},
{"italian", ENC_UTF_8, italian_UTF_8_create_env, italian_UTF_8_close_env, italian_UTF_8_stem},
{"nl", ENC_ISO_8859_1, dutch_ISO_8859_1_create_env, dutch_ISO_8859_1_close_env, dutch_ISO_8859_1_stem},
{"nl", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
{"nld", ENC_ISO_8859_1, dutch_ISO_8859_1_create_env, dutch_ISO_8859_1_close_env, dutch_ISO_8859_1_stem},
{"nld", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
{"no", ENC_ISO_8859_1, norwegian_ISO_8859_1_create_env, norwegian_ISO_8859_1_close_env, norwegian_ISO_8859_1_stem},
{"no", ENC_UTF_8, norwegian_UTF_8_create_env, norwegian_UTF_8_close_env, norwegian_UTF_8_stem},
{"nor", ENC_ISO_8859_1, norwegian_ISO_8859_1_create_env, norwegian_ISO_8859_1_close_env, norwegian_ISO_8859_1_stem},
{"nor", ENC_UTF_8, norwegian_UTF_8_create_env, norwegian_UTF_8_close_env, norwegian_UTF_8_stem},
{"norwegian", ENC_ISO_8859_1, norwegian_ISO_8859_1_create_env, norwegian_ISO_8859_1_close_env, norwegian_ISO_8859_1_stem},
{"norwegian", ENC_UTF_8, norwegian_UTF_8_create_env, norwegian_UTF_8_close_env, norwegian_UTF_8_stem},
{"por", ENC_ISO_8859_1, portuguese_ISO_8859_1_create_env, portuguese_ISO_8859_1_close_env, portuguese_ISO_8859_1_stem},
{"por", ENC_UTF_8, portuguese_UTF_8_create_env, portuguese_UTF_8_close_env, portuguese_UTF_8_stem},
{"porter", ENC_ISO_8859_1, porter_ISO_8859_1_create_env, porter_ISO_8859_1_close_env, porter_ISO_8859_1_stem},
{"porter", ENC_UTF_8, porter_UTF_8_create_env, porter_UTF_8_close_env, porter_UTF_8_stem},
{"portuguese", ENC_ISO_8859_1, portuguese_ISO_8859_1_create_env, portuguese_ISO_8859_1_close_env, portuguese_ISO_8859_1_stem},
{"portuguese", ENC_UTF_8, portuguese_UTF_8_create_env, portuguese_UTF_8_close_env, portuguese_UTF_8_stem},
{"pt", ENC_ISO_8859_1, portuguese_ISO_8859_1_create_env, portuguese_ISO_8859_1_close_env, portuguese_ISO_8859_1_stem},
{"pt", ENC_UTF_8, portuguese_UTF_8_create_env, portuguese_UTF_8_close_env, portuguese_UTF_8_stem},
{"ro", ENC_ISO_8859_2, romanian_ISO_8859_2_create_env, romanian_ISO_8859_2_close_env, romanian_ISO_8859_2_stem},
{"ro", ENC_UTF_8, romanian_UTF_8_create_env, romanian_UTF_8_close_env, romanian_UTF_8_stem},
{"romanian", ENC_ISO_8859_2, romanian_ISO_8859_2_create_env, romanian_ISO_8859_2_close_env, romanian_ISO_8859_2_stem},
{"romanian", ENC_UTF_8, romanian_UTF_8_create_env, romanian_UTF_8_close_env, romanian_UTF_8_stem},
{"ron", ENC_ISO_8859_2, romanian_ISO_8859_2_create_env, romanian_ISO_8859_2_close_env, romanian_ISO_8859_2_stem},
{"ron", ENC_UTF_8, romanian_UTF_8_create_env, romanian_UTF_8_close_env, romanian_UTF_8_stem},
{"ru", ENC_KOI8_R, russian_KOI8_R_create_env, russian_KOI8_R_close_env, russian_KOI8_R_stem},
{"ru", ENC_UTF_8, russian_UTF_8_create_env, russian_UTF_8_close_env, russian_UTF_8_stem},
{"rum", ENC_ISO_8859_2, romanian_ISO_8859_2_create_env, romanian_ISO_8859_2_close_env, romanian_ISO_8859_2_stem},
{"rum", ENC_UTF_8, romanian_UTF_8_create_env, romanian_UTF_8_close_env, romanian_UTF_8_stem},
{"rus", ENC_KOI8_R, russian_KOI8_R_create_env, russian_KOI8_R_close_env, russian_KOI8_R_stem},
{"rus", ENC_UTF_8, russian_UTF_8_create_env, russian_UTF_8_close_env, russian_UTF_8_stem},
{"russian", ENC_KOI8_R, russian_KOI8_R_create_env, russian_KOI8_R_close_env, russian_KOI8_R_stem},
{"russian", ENC_UTF_8, russian_UTF_8_create_env, russian_UTF_8_close_env, russian_UTF_8_stem},
{"spa", ENC_ISO_8859_1, spanish_ISO_8859_1_create_env, spanish_ISO_8859_1_close_env, spanish_ISO_8859_1_stem},
{"spa", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
{"spanish", ENC_ISO_8859_1, spanish_ISO_8859_1_create_env, spanish_ISO_8859_1_close_env, spanish_ISO_8859_1_stem},
{"spanish", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
{"sv", ENC_ISO_8859_1, swedish_ISO_8859_1_create_env, swedish_ISO_8859_1_close_env, swedish_ISO_8859_1_stem},
{"sv", ENC_UTF_8, swedish_UTF_8_create_env, swedish_UTF_8_close_env, swedish_UTF_8_stem},
{"swe", ENC_ISO_8859_1, swedish_ISO_8859_1_create_env, swedish_ISO_8859_1_close_env, swedish_ISO_8859_1_stem},
{"swe", ENC_UTF_8, swedish_UTF_8_create_env, swedish_UTF_8_close_env, swedish_UTF_8_stem},
{"swedish", ENC_ISO_8859_1, swedish_ISO_8859_1_create_env, swedish_ISO_8859_1_close_env, swedish_ISO_8859_1_stem},
{"swedish", ENC_UTF_8, swedish_UTF_8_create_env, swedish_UTF_8_close_env, swedish_UTF_8_stem},
{"tr", ENC_UTF_8, turkish_UTF_8_create_env, turkish_UTF_8_close_env, turkish_UTF_8_stem},
{"tur", ENC_UTF_8, turkish_UTF_8_create_env, turkish_UTF_8_close_env, turkish_UTF_8_stem},
{"turkish", ENC_UTF_8, turkish_UTF_8_create_env, turkish_UTF_8_close_env, turkish_UTF_8_stem},
{0,ENC_UNKNOWN,0,0,0}
};
static const char * algorithm_names[] = {
"danish",
"dutch",
"english",
"finnish",
"french",
"german",
"hungarian",
"italian",
"norwegian",
"porter",
"portuguese",
"romanian",
"russian",
"spanish",
"swedish",
"turkish",
0
};
|
AlasdairF/Stemmer
|
modules.h
|
C
|
mit
| 12,566 |
<#@ template inherits="ETemplate" language="VB" #>
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* Script file for <#= Value("Extension.name") #> Component
*/
class com_<#= Value("Extension.name") #>InstallerScript
{
/**
* method to install the component
* $parent is the class calling this method
* @return void
*/
function install($parent)
{
//$parent->getParent()->setRedirectURL('index.php?option=<#= Value("Extension.fullName") #>');
}
/**
* method to uninstall the component
* $parent is the class calling this method
* @return void
*/
function uninstall($parent)
{
}
/**
* method to update the component
* $parent is the class calling this method
* @return void
*/
function update($parent)
{
}
/**
* method to run before an install/update/uninstall method
* $type is the type of change (install, update or discover_install)
* $parent is the class calling this method
* @return void
*/
function preflight($type, $parent)
{
}
/**
* method to run after an install/update/uninstall method
* $type is the type of change (install, update or discover_install)
* $parent is the class calling this method
* @return void
*/
function postflight($type, $parent)
{
}
}
|
k2rajara/ExtensionCreator
|
Templates/j3.x_component/beInstallScript.php
|
PHP
|
mit
| 1,289 |
## a list of reserved names from PyCall.jl
const reserved = Set{String}([
"while", "if", "for", "try", "return", "break", "continue",
"function", "macro", "quote", "let", "local", "global", "const",
"abstract", "typealias", "type", "bitstype", "immutable", "ccall",
"do", "module", "baremodule", "using", "import", "export", "importall",
"false", "true", "Tuple", "rmember", "__package__"])
cached_namespaces = Dict{String, Module}()
"""
Import an R package as a julia module.
Sanitizes the imported symbols by default, because otherwise certain symbols cannot be used.
E.g.: `PerformanceAnalytics::charts.Bar` in R becomes `PerformanceAnalytics.charts_Bar` in Julia
```
gg = rimport("ggplot2")
```
"""
function rimport(pkg::String, s::Symbol=:__anonymous__; normalizenames::Bool=true)
if pkg in keys(cached_namespaces)
m = cached_namespaces[pkg]
else
ns = rcall(:asNamespace, pkg)
members = rcopy(Vector{String}, rcall(:getNamespaceExports, ns))
m = Module(s, false)
id = Expr(:const, Expr(:(=), :__package__, pkg))
if normalizenames
exports = [Symbol(replace(x, '.' => '_')) for x in members]
else
exports = [Symbol(x) for x in members]
end
filtered_indices = filter!(i -> !(string(exports[i]) in reserved),
collect(eachindex(exports)))
consts = [Expr(:const, Expr(:(=),
exports[i],
rcall(Symbol("::"), pkg, members[i]))) for i in filtered_indices ]
Core.eval(m, Expr(:toplevel, id, consts..., Expr(:export, exports...), :(rmember(x) = ($getindex)($ns, x))))
cached_namespaces[pkg] = m
end
m
end
rimport(pkg::Symbol, s::Symbol=:__anonymous__) = rimport(string(pkg), s)
"""
Import an R Package as a Julia module. For example,
```
@rimport ggplot2
```
is equivalent to `ggplot2 = rimport("ggplot2")` with error checking.
You can also use classic Python syntax to make an alias: `@rimport *package-name* as *shorthand*`
```
@rimport ggplot2 as gg
```
which is equivalent to `gg = rimport("ggplot2")`.
"""
macro rimport(x, args...)
if length(args)==2 && args[1] == :as
m = Symbol(args[2])
elseif length(args)==0
m = Symbol(x)
else
throw(ArgumentError("invalid import syntax."))
end
pkg = string(x)
quote
if !isdefined(@__MODULE__, $(QuoteNode(m)))
const $(esc(m)) = rimport($pkg)
nothing
elseif typeof($(esc(m))) <: Module &&
:__package__ in names($(esc(m)), all = true) &&
$(esc(m)).__package__ == $pkg
nothing
else
error($pkg * " already exists! Use the syntax `@rimport " * $pkg *" as *shorthand*`.")
nothing
end
end
end
"""
Load all exported functions/objects of an R package to the current module. Almost equivalent to
```
__temp__ = rimport("ggplot2")
using .__temp__
```
"""
macro rlibrary(x)
m = gensym("RCall")
quote
$(esc(m)) = rimport($(QuoteNode(x)))
Core.eval(@__MODULE__, Expr(:using, Expr(:., :., $(QuoteNode(m)))))
end
end
|
JuliaStats/RCall.jl
|
src/namespaces.jl
|
Julia
|
mit
| 3,195 |
#import <AFNetworking/AFNetworking.h>
@interface AFHTTPSessionManager (WMFCancelAll)
- (void)wmf_cancelAllTasks;
- (void)wmf_cancelAllTasksWithCompletionHandler:(dispatch_block_t)completion;
@end
|
julienbodet/wikipedia-ios
|
Wikipedia/Code/AFHTTPSessionManager+WMFCancelAll.h
|
C
|
mit
| 200 |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2022 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
#pragma once
#include "gl_common.h"
#define Bool int
// glX functions
typedef GLXContext (*PFN_glXCreateContext)(Display *dpy, XVisualInfo *vis, GLXContext shareList,
Bool direct);
typedef GLXContext (*PFN_glXCreateNewContext)(Display *dpy, GLXFBConfig config, int renderType,
GLXContext shareList, Bool direct);
typedef void (*PFN_glXDestroyContext)(Display *dpy, GLXContext ctx);
typedef Bool (*PFN_glXMakeCurrent)(Display *dpy, GLXDrawable drawable, GLXContext ctx);
typedef void (*PFN_glXSwapBuffers)(Display *dpy, GLXDrawable drawable);
typedef int (*PFN_glXGetConfig)(Display *dpy, XVisualInfo *vis, int attrib, int *value);
typedef int (*PFN_glXQueryContext)(Display *dpy, GLXContext ctx, int attribute, int *value);
typedef Bool (*PFN_glXIsDirect)(Display *dpy, GLXContext ctx);
typedef __GLXextFuncPtr (*PFN_glXGetProcAddress)(const GLubyte *);
typedef __GLXextFuncPtr (*PFN_glXGetProcAddressARB)(const GLubyte *);
typedef GLXContext (*PFN_glXGetCurrentContext)();
typedef const char *(*PFN_glXQueryExtensionsString)(Display *dpy, int screen);
typedef PFNGLXGETVISUALFROMFBCONFIGPROC PFN_glXGetVisualFromFBConfig;
typedef PFNGLXMAKECONTEXTCURRENTPROC PFN_glXMakeContextCurrent;
typedef PFNGLXCHOOSEFBCONFIGPROC PFN_glXChooseFBConfig;
typedef PFNGLXGETFBCONFIGATTRIBPROC PFN_glXGetFBConfigAttrib;
typedef PFNGLXQUERYDRAWABLEPROC PFN_glXQueryDrawable;
typedef PFNGLXCREATEPBUFFERPROC PFN_glXCreatePbuffer;
typedef PFNGLXDESTROYPBUFFERPROC PFN_glXDestroyPbuffer;
typedef PFNGLXCREATECONTEXTATTRIBSARBPROC PFN_glXCreateContextAttribsARB;
// gl functions (used for quad rendering on legacy contexts)
typedef PFNGLGETINTEGERVPROC PFN_glGetIntegerv;
typedef void (*PFN_glPushMatrix)();
typedef void (*PFN_glLoadIdentity)();
typedef void (*PFN_glMatrixMode)(GLenum);
typedef void (*PFN_glOrtho)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
typedef void (*PFN_glPopMatrix)();
typedef void (*PFN_glBegin)(GLenum);
typedef void (*PFN_glVertex2f)(float, float);
typedef void (*PFN_glTexCoord2f)(float, float);
typedef void (*PFN_glEnd)();
#define GLX_HOOKED_SYMBOLS(FUNC) \
FUNC(glXGetProcAddress); \
FUNC(glXGetProcAddressARB); \
FUNC(glXCreateContext); \
FUNC(glXCreateNewContext); \
FUNC(glXDestroyContext); \
FUNC(glXCreateContextAttribsARB); \
FUNC(glXMakeCurrent); \
FUNC(glXMakeContextCurrent); \
FUNC(glXSwapBuffers);
#define GLX_NONHOOKED_SYMBOLS(FUNC) \
FUNC(glXGetCurrentContext); \
FUNC(glXGetConfig); \
FUNC(glXQueryContext); \
FUNC(glXIsDirect); \
FUNC(glXGetVisualFromFBConfig); \
FUNC(glXChooseFBConfig); \
FUNC(glXGetFBConfigAttrib); \
FUNC(glXQueryDrawable); \
FUNC(glXQueryExtensionsString); \
FUNC(glXCreatePbuffer); \
FUNC(glXDestroyPbuffer); \
FUNC(glGetIntegerv); \
FUNC(glPushMatrix); \
FUNC(glLoadIdentity); \
FUNC(glMatrixMode); \
FUNC(glOrtho); \
FUNC(glPopMatrix); \
FUNC(glBegin); \
FUNC(glVertex2f); \
FUNC(glTexCoord2f); \
FUNC(glEnd);
struct GLXDispatchTable
{
// since on posix systems we need to export the functions that we're hooking, that means on replay
// we can't avoid coming back into those hooks again. We have a single 'hookset' that we use for
// dispatch during capture and on replay, but it's populated in different ways.
//
// During capture the hooking process is the primary way of filling in the real function pointers.
// While during replay we explicitly fill it outo the first time we need it.
//
// Note that we still assume all functions are populated (either with trampolines or the real
// function pointer) by the hooking process while injected - hence the name 'PopulateForReplay'.
bool PopulateForReplay();
// Generate the GLX function pointers. We need to consider hooked and non-hooked symbols separately
// - non-hooked symbols don't have a function hook to register, or if they do it's a dummy
// pass-through hook that will risk calling itself via trampoline.
#define GLX_PTR_GEN(func) CONCAT(PFN_, func) func;
GLX_HOOKED_SYMBOLS(GLX_PTR_GEN)
GLX_NONHOOKED_SYMBOLS(GLX_PTR_GEN)
#undef GLX_PTR_GEN
};
extern GLXDispatchTable GLX;
|
Zorro666/renderdoc
|
renderdoc/driver/gl/glx_dispatch_table.h
|
C
|
mit
| 5,789 |
/** VD */
#pragma once
#include <functional>
#include <vector>
#include <list>
namespace vd {
// Sometimes I'm fan of fun
namespace fun {
template <typename T, typename F>
void each(const T& cnt, const F& functor)
{
std::for_each(cnt.begin(), cnt.end(), functor);
}
template <typename Orig, typename New>
std::vector<New> transform(const std::vector<Orig>& cnt, const std::function<New (const Orig& i)>& transf)
{
std::vector<New> res;
res.reserve(cnt.size());
each(cnt, [&] (const Orig& v) {
res.push_back(transf(v));
});
return res;
}
template <typename Orig, typename New>
std::list<New> transform(const std::list<Orig>& cnt, const std::function<New (const Orig& i)>& transf)
{
std::list<New> res;
each(cnt, [&] (const Orig& v) {
res.push_back(transf(v));
});
return res;
}
template <typename T, typename P, typename Cmp>
P best(const P& def, const std::vector<T>& cnt, Cmp cmp, const std::function<P (const T& i)>& prop)
{
P bst = def;
each(cnt, [&] (const T& v)
{
P cur = prop(v);
if (cmp(cur, bst))
bst = cur;
});
return bst;
}
template <typename T>
const T& find(const std::vector<T>& cnt, const T& def, const std::function<bool (const T& i)>& functor)
{
std::vector<T>::const_iterator i = cnt.begin();
std::vector<T>::const_iterator end = cnt.end();
for (; i != end; ++i)
{
if (functor(*i))
return *i;
}
return def;
}
} // namespace fun
} // namespace vd
|
amikey/video-player
|
sources/include/vd/fun.hpp
|
C++
|
mit
| 1,413 |
define(['./_baseForOwnRight', './_createBaseEach'], function(baseForOwnRight, createBaseEach) {
/**
* The base implementation of `_.forEachRight` without support for iteratee shorthands.
*
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array|Object} Returns `collection`.
*/
var baseEachRight = createBaseEach(baseForOwnRight, true);
return baseEachRight;
});
|
fdeleo/alugaqui-webserver
|
node_modules/lodash-amd/_baseEachRight.js
|
JavaScript
|
mit
| 497 |
/* 打印机全局设定 */
body {
width: 122mm;
}
h2 {
font-size: 21px;
text-align: center;
font-family: 'STXihei';
font-weight: bold;
}
.sub-title-box {
height: 1.2em;
color: #fff;
background-color: #800080;
display: inline;
padding-left: 0.2em;
padding-right: 0.2em;
padding-top: 0em;
padding-bottom: 0.1em;
}
.sub-title-box > p {
display: inline;
text-align: center;
font-family: 'STXihei';
font-size: 10px;
letter-spacing: 0.1em;
font-weight: bold;
}
.chs {
font-family: 'STSong';
font-weight: 500;
font-size: 11px;
text-indent: 1.5em;
}
.chs > span {
margin-left: 0.3em;
margin-right:0.3em;/*
border-radius: 3px;
border:1px solid #666;
padding-left: 0.2em;
padding-right: 0.2em;
padding-top: 0.1em;
padding-bottom: 0.1em;
line-height: 1.9em;
background-color: #ccc;*/
color: #000;
font-weight: 400;
}
.qrcode-img {
float: left;
position: relative;
}
.qrcode-img > img {
width: 36px;
}
/* 双栏设定 */
.main-text {
display: inline-block;
}
.article_content {
float: left;
width: 74%;
}
.sidebar-text {
float: right;
width: 24%;
}
/* 听写内容 */
h3 {
font-size: 17px;
font-weight: 1000;
font-family: 'Lucida Console';
text-align: center;
margin-bottom: 9px;
}
.corner5 {
display: none;
}
.article_content {
font-family: 'Constantia','Georgia';
font-size: 12.5px;
}
.diff_off {
color: #f00;
text-decoration: line-through;
padding-left: 0.2em;
padding-right: 0.2em;
}
.diff_add {
font-style: italic;
font-weight: bold;
}
.diff_alert {
font-weight: bold;
background-color: #6bc0f3;
}
.linetext {
text-indent: 1em;
line-height: 1.4em;
margin-bottom: 0em;
margin-top: 0.4em;
}
.sidebar-text {
font-family: 'Constantia','Georgia','STXihei';
font-size: 10px;
/*font-style: italic;*/
font-weight: 200;
letter-spacing: -0.02em;
line-height: 1.2em;
color: #333;
text-indent: 0.3em;
word-break: break-all;
}
/* 原文内容 */
.main-original {
line-height: 1.2em;
}
.main-original > div > p {
font-family: 'Constantia','Georgia';
font-size: 13px;
margin-top: 0em;
margin-bottom: 0em;
}
/* 翻译内容*/
.main-translation {
}
.main-translation > div > p {
font-family: 'Constantia','Georgia','STXihei';
font-weight: 500;
font-size: 10.5px;
line-height: 1.3em;
text-indent: 1.5em;
margin-top: 0em;
margin-bottom: 0.2em;
}
.svg-container {
text-align: center;
}
@page:left {
margin-left: 18mm;
margin-right: 8mm;
margin-top: 8mm;
margin-bottom: 8mm;
@bottom-right-corner {
content : '- ' counter(page) ' -';
font-family: 'Arial';
font-size: 9px;
color: "#555";
}
}
@page:right {
margin-left: 8mm;
margin-right: 18mm;
margin-top: 8mm;
margin-bottom: 8mm;
@bottom-left-corner {
content : '- ' counter(page) ' -';
font-family: 'Arial';
font-size: 9.5px;
color: "#555";
}
}
@page {
size: A5;
}
|
zhangpeng96/web-typesetting-system
|
templates/DarkForest.listening/print.css
|
CSS
|
mit
| 3,183 |
/*
* Copyright (c) 2014 Spotify AB
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
#ifndef __JavaClassUtils_h__
#define __JavaClassUtils_h__
#include "JniHelpersCommon.h"
#include <string>
#include <stdarg.h>
namespace spotify {
namespace jni {
/**
* @brief Convenience macro to create canonical name for a class
*
* Note that the class name should *not* be a quoted string, otherwise the quotes
* will be added literally to the string. Example usage:
*
* #define PACKAGE "com/example/stuff"
* MAKE_CANONICAL_NAME(PACKAGE, Foo)
*
* In the above example, the PACKAGE definition should ideally be placed in a header
* file which is accessible to your package sources. The above macro will then produce
* the string "com/example/stuff/Foo".
*/
#define MAKE_CANONICAL_NAME(_PACKAGE, _CLASS) _PACKAGE "/" #_CLASS
#define MAKE_CANONICAL_NAME_INNER_CLASS(_PACKAGE, _CLASS) _PACKAGE "$" #_CLASS
class JavaClassUtils {
private:
// Direct instantiation is not allowed for this class
JavaClassUtils() {}
JavaClassUtils(const JavaClassUtils&) {}
virtual ~JavaClassUtils() {}
public:
/**
* @brief Cache an instance of the Java ClassLoader
* @param env JNIEnv
*
* If you intend to use findClass() with a Java ClassLoader, then this method will be
* invoked automatically to initialize a static JavaClass instance of this class,
* which is needed by findClass() to do the actual lookup. Since initialization of
* JavaClass instances may take a bit of time, this method is exposed in case you
* wish to manually call it during JNI initialization.
*
* In most cases, it should not be necessary to explicitly call this method from your
* code.
*/
static EXPORT void setJavaClassLoader(JNIEnv *env);
/**
* @brief Look up a Java class object
* @param env JNIEnv
* @param class_name Canonical class name
* @param use_class_loader Use a Java ClassLoader instance. This is not necessary for
* looking up Java classes, however it may be needed in other
* cases, particularly when trying to load your own classes in
* Android.
* @return Java class object, or NULL if none was found
*
* This method will throw NoClassDefFoundError if the class could not be found.
*/
static EXPORT jclass findClass(JNIEnv *env, const char *class_name, bool use_class_loader);
/**
* @brief Make a name safe to pass to a method requiring JNI signatures
* @param receiver String to recieve the generated signature
* @param name Name to convert
*
* When looking up field or method names which involve another class name, it may be
* necessary to convert these to the corresponding JNI signature types (for example,
* Lcom/example/MyClass; for com.example.MyClass). This method will create a JNI
* signature string based on a canonical name.
*
* Passing a JNI signature to this class should have no effect, it will simply return
* the same string to the receiver.
*/
static EXPORT void makeNameForSignature(std::string &receiver, const char *name);
/**
* @brief Make a method signature from a variable list of arguments
* @param receiver String to receive the generated signature
* @param return_type Return type of function (see JniTypes.h)
* @param ... List of arguments which function takes, ending with NULL. If the method
* takes no arguments, just pass NULL here. If you do not pass NULL as the
* last argument to this method, unexpected behavior will occur!
*/
static EXPORT void makeSignature(std::string &receiver, const char *return_type, ...);
/**
* @brief Make a method signature from a variable list of arguments
* @param receiver String to receive the generated signature
* @param return_type Return type of function (see JniTypes.h)
* @param arguments List of arguments which function takes
*/
static EXPORT void makeSignatureWithList(std::string &receiver, const char *return_type, va_list arguments);
};
} // namespace jni
} // namespace spotify
#endif // __JavaClassUtils_h__
|
the-mac/AndroidJniHelpers
|
library/src/main/cpp/JavaClassUtils.h
|
C
|
mit
| 4,899 |
define(
[
'react',
'jquery',
'./header-messages',
'./header-notifications',
'./header-tasks'
],
function (React, $, HeaderMessages, HeaderNotifications, HeaderTasks) {
var HeaderBar = React.createClass({
getInitialState: function () {
return {
messages: [],
notifications: [],
tasks: []
}
},
pushMenu: function () {
var body = document.body;
if(body.clientWidth > 768){
if(body.className.indexOf('sidebar-collapse') === -1){
body.className += ' sidebar-collapse';
}else {
body.className = body.className.replace(' sidebar-collapse', '');
}
}else{
if (body.className.indexOf('sidebar-open') === -1) {
body.className += ' sidebar-open';
}else{
body.className = body.className.replace(' sidebar-open','');
}
}
},
componentDidMount: function () {
var messages = [{
displayName: 'Support Team',
displayPicture: 'dist/img/user2-160x160.jpg',
messageSubject: 'Why not buy a new awesome theme?',
messageTime: '5 mins',
}, {
displayName: 'AdminLTE Design Team',
displayPicture: 'dist/img/user3-128x128.jpg',
messageSubject: 'Why not buy a new awesome theme?',
messageTime: '2 hours',
}, {
displayName: 'Developers',
displayPicture: 'dist/img/user4-128x128.jpg',
messageSubject: 'Why not buy a new awesome theme?',
messageTime: 'Today',
}, {
displayName: 'Sales Department',
displayPicture: 'dist/img/user3-128x128.jpg',
messageSubject: 'Why not buy a new awesome theme?',
messageTime: 'Yesterday',
}, {
displayName: 'Reviewers',
displayPicture: 'dist/img/user4-128x128.jpg',
messageSubject: 'Why not buy a new awesome theme?',
messageTime: '2 days',
}];
var notifications = [{
subject: '5 new members joined today',
className: 'fa fa-users text-aqua'
}, {
subject: 'Very long description here that may not fit into the page and may cause design problems',
className: 'fa fa-warning text-yellow'
}, {
subject: '5 new members joined',
className: 'fa fa-users text-red'
}, {
subject: '25 sales made',
className: 'fa fa-shopping-cart text-green'
}, {
subject: 'You changed your username',
className: 'fa fa-user text-red'
}];
var tasks = [{
subject: 'Design some buttons',
percentage: 20
}, {
subject: 'Create a nice theme',
percentage: 40
}, {
subject: 'Some task I need to do',
percentage: 60
}, {
subject: 'Make beautiful transitions',
percentage: 80
}];
this.setState({
messages: messages,
notifications: notifications,
tasks: tasks
});
},
render: function () {
var that = this;
return (
<header className="main-header">
{/* Logo */}
<a href="index2.html" className="logo">
{/* mini logo for sidebar mini 50x50 pixels */}
<span className="logo-mini"><b>A</b>LT</span>
{/* logo for regular state and mobile devices */}
<span className="logo-lg"><b>Admin</b>LTE</span>
</a>
{/* Header Navbar: style can be found in header.less */}
<nav className="navbar navbar-static-top" role="navigation">
{/* Sidebar toggle button*/}
<a href="#" className="sidebar-toggle" data-toggle="offcanvas" role="button" onClick={that.pushMenu}>
<span className="sr-only">Toggle navigation</span>
</a>
<div className="navbar-custom-menu">
<ul className="nav navbar-nav">
{/* Messages: style can be found in dropdown.less*/}
<li className="dropdown messages-menu">
<a href="#" className="dropdown-toggle" data-toggle="dropdown">
<i className="fa fa-envelope-o"></i>
<span className="label label-success">{that.state.messages.length}</span>
</a>
<HeaderMessages messages={that.state.messages} />
</li>
{/* Notifications: style can be found in dropdown.less */}
<li className="dropdown notifications-menu">
<a href="#" className="dropdown-toggle" data-toggle="dropdown">
<i className="fa fa-bell-o"></i>
<span className="label label-warning">{that.state.notifications.length}</span>
</a>
<HeaderNotifications notifications={that.state.notifications} />
</li>
{/* Tasks: style can be found in dropdown.less */}
<li className="dropdown tasks-menu">
<a href="#" className="dropdown-toggle" data-toggle="dropdown">
<i className="fa fa-flag-o"></i>
<span className="label label-danger">{that.state.notifications.length}</span>
</a>
<HeaderTasks tasks={that.state.tasks} />
</li>
{/* User Account: style can be found in dropdown.less */}
<li className="dropdown user user-menu">
<a href="#" className="dropdown-toggle" data-toggle="dropdown">
<img src="dist/img/user2-160x160.jpg" className="user-image" alt="User Image" />
<span className="hidden-xs">Alexander Pierce</span>
</a>
<ul className="dropdown-menu">
{/* User image */}
<li className="user-header">
<img src="dist/img/user2-160x160.jpg" className="img-circle" alt="User Image" />
<p>
Alexander Pierce - Web Developer
<small>Member since Nov. 2012</small>
</p>
</li>
{/* Menu Body */}
<li className="user-body">
<div className="col-xs-4 text-center">
<a href="#">Followers</a>
</div>
<div className="col-xs-4 text-center">
<a href="#">Sales</a>
</div>
<div className="col-xs-4 text-center">
<a href="#">Friends</a>
</div>
</li>
{/* Menu Footer */}
<li className="user-footer">
<div className="pull-left">
<a href="#" className="btn btn-default btn-flat">Profile</a>
</div>
<div className="pull-right">
<a href="#" className="btn btn-default btn-flat">Sign out</a>
</div>
</li>
</ul>
</li>
{ /* ontrol Sidebar Toggle Button */}
<li>
<a href="#" data-toggle="control-sidebar"><i className="fa fa-gears"></i></a>
</li>
</ul>
</div>
</nav>
</header>
)
}
});
return HeaderBar;
}
)
|
Neusoft-PSD/ReactJS-AdminLTE
|
reactjs-adminlte/public/widgets/js/components/header-bar/header-bar.js
|
JavaScript
|
mit
| 10,384 |
/////////////////////////////////////////////////////////////////////////////
// Name: src/msw/brush.cpp
// Purpose: wxBrush
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/brush.h"
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#endif // WX_PRECOMP
#include "wx/msw/private.h"
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxBrushRefData: public wxGDIRefData
{
public:
wxBrushRefData(const wxColour& colour = wxNullColour, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
wxBrushRefData(const wxBitmap& stipple);
wxBrushRefData(const wxBrushRefData& data);
virtual ~wxBrushRefData();
bool operator==(const wxBrushRefData& data) const;
HBRUSH GetHBRUSH();
void Free();
const wxColour& GetColour() const { return m_colour; }
wxBrushStyle GetStyle() const { return m_style; }
wxBitmap *GetStipple() { return &m_stipple; }
void SetColour(const wxColour& colour) { Free(); m_colour = colour; }
void SetStyle(wxBrushStyle style) { Free(); m_style = style; }
void SetStipple(const wxBitmap& stipple) { Free(); DoSetStipple(stipple); }
private:
void DoSetStipple(const wxBitmap& stipple);
wxBrushStyle m_style;
wxBitmap m_stipple;
wxColour m_colour;
HBRUSH m_hBrush;
// no assignment operator, the objects of this class are shared and never
// assigned after being created once
wxBrushRefData& operator=(const wxBrushRefData&);
};
#define M_BRUSHDATA ((wxBrushRefData *)m_refData)
// ============================================================================
// wxBrushRefData implementation
// ============================================================================
IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject)
// ----------------------------------------------------------------------------
// wxBrushRefData ctors/dtor
// ----------------------------------------------------------------------------
wxBrushRefData::wxBrushRefData(const wxColour& colour, wxBrushStyle style)
: m_colour(colour)
{
m_style = style;
m_hBrush = NULL;
}
wxBrushRefData::wxBrushRefData(const wxBitmap& stipple)
{
DoSetStipple(stipple);
m_hBrush = NULL;
}
wxBrushRefData::wxBrushRefData(const wxBrushRefData& data)
: wxGDIRefData(),
m_stipple(data.m_stipple),
m_colour(data.m_colour)
{
m_style = data.m_style;
// we can't share HBRUSH, we'd need to create another one ourselves
m_hBrush = NULL;
}
wxBrushRefData::~wxBrushRefData()
{
Free();
}
// ----------------------------------------------------------------------------
// wxBrushRefData accesors
// ----------------------------------------------------------------------------
bool wxBrushRefData::operator==(const wxBrushRefData& data) const
{
// don't compare HBRUSHes
return m_style == data.m_style &&
m_colour == data.m_colour &&
m_stipple.IsSameAs(data.m_stipple);
}
void wxBrushRefData::DoSetStipple(const wxBitmap& stipple)
{
m_stipple = stipple;
m_style = stipple.GetMask() ? wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE
: wxBRUSHSTYLE_STIPPLE;
}
// ----------------------------------------------------------------------------
// wxBrushRefData resource handling
// ----------------------------------------------------------------------------
void wxBrushRefData::Free()
{
if ( m_hBrush )
{
::DeleteObject(m_hBrush);
m_hBrush = NULL;
}
}
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
static int TranslateHatchStyle(int style)
{
switch ( style )
{
case wxBRUSHSTYLE_BDIAGONAL_HATCH: return HS_BDIAGONAL;
case wxBRUSHSTYLE_CROSSDIAG_HATCH: return HS_DIAGCROSS;
case wxBRUSHSTYLE_FDIAGONAL_HATCH: return HS_FDIAGONAL;
case wxBRUSHSTYLE_CROSS_HATCH: return HS_CROSS;
case wxBRUSHSTYLE_HORIZONTAL_HATCH:return HS_HORIZONTAL;
case wxBRUSHSTYLE_VERTICAL_HATCH: return HS_VERTICAL;
default: return -1;
}
}
#endif // !__WXMICROWIN__ && !__WXWINCE__
HBRUSH wxBrushRefData::GetHBRUSH()
{
if ( !m_hBrush )
{
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
int hatchStyle = TranslateHatchStyle(m_style);
if ( hatchStyle == -1 )
#endif // !__WXMICROWIN__ && !__WXWINCE__
{
switch ( m_style )
{
case wxBRUSHSTYLE_TRANSPARENT:
m_hBrush = (HBRUSH)::GetStockObject(NULL_BRUSH);
break;
case wxBRUSHSTYLE_STIPPLE:
m_hBrush = ::CreatePatternBrush(GetHbitmapOf(m_stipple));
break;
case wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE:
m_hBrush = ::CreatePatternBrush((HBITMAP)m_stipple.GetMask()
->GetMaskBitmap());
break;
default:
wxFAIL_MSG( wxT("unknown brush style") );
// fall through
case wxBRUSHSTYLE_SOLID:
m_hBrush = ::CreateSolidBrush(m_colour.GetPixel());
break;
}
}
#ifndef __WXWINCE__
else // create a hatched brush
{
m_hBrush = ::CreateHatchBrush(hatchStyle, m_colour.GetPixel());
}
#endif
if ( !m_hBrush )
{
wxLogLastError(wxT("CreateXXXBrush()"));
}
}
return m_hBrush;
}
// ============================================================================
// wxBrush implementation
// ============================================================================
// ----------------------------------------------------------------------------
// wxBrush ctors/dtor
// ----------------------------------------------------------------------------
wxBrush::wxBrush()
{
}
wxBrush::wxBrush(const wxColour& col, wxBrushStyle style)
{
m_refData = new wxBrushRefData(col, style);
}
#if FUTURE_WXWIN_COMPATIBILITY_3_0
wxBrush::wxBrush(const wxColour& col, int style)
{
m_refData = new wxBrushRefData(col, (wxBrushStyle)style);
}
#endif
wxBrush::wxBrush(const wxBitmap& stipple)
{
m_refData = new wxBrushRefData(stipple);
}
wxBrush::~wxBrush()
{
}
// ----------------------------------------------------------------------------
// wxBrush house keeping stuff
// ----------------------------------------------------------------------------
bool wxBrush::operator==(const wxBrush& brush) const
{
const wxBrushRefData *brushData = (wxBrushRefData *)brush.m_refData;
// an invalid brush is considered to be only equal to another invalid brush
return m_refData ? (brushData && *M_BRUSHDATA == *brushData) : !brushData;
}
wxGDIRefData *wxBrush::CreateGDIRefData() const
{
return new wxBrushRefData;
}
wxGDIRefData *wxBrush::CloneGDIRefData(const wxGDIRefData *data) const
{
return new wxBrushRefData(*(const wxBrushRefData *)data);
}
// ----------------------------------------------------------------------------
// wxBrush accessors
// ----------------------------------------------------------------------------
wxColour wxBrush::GetColour() const
{
wxCHECK_MSG( Ok(), wxNullColour, wxT("invalid brush") );
return M_BRUSHDATA->GetColour();
}
wxBrushStyle wxBrush::GetStyle() const
{
wxCHECK_MSG( Ok(), wxBRUSHSTYLE_INVALID, wxT("invalid brush") );
return M_BRUSHDATA->GetStyle();
}
wxBitmap *wxBrush::GetStipple() const
{
wxCHECK_MSG( Ok(), NULL, wxT("invalid brush") );
return M_BRUSHDATA->GetStipple();
}
WXHANDLE wxBrush::GetResourceHandle() const
{
wxCHECK_MSG( Ok(), FALSE, wxT("invalid brush") );
return (WXHANDLE)M_BRUSHDATA->GetHBRUSH();
}
// ----------------------------------------------------------------------------
// wxBrush setters
// ----------------------------------------------------------------------------
void wxBrush::SetColour(const wxColour& col)
{
AllocExclusive();
M_BRUSHDATA->SetColour(col);
}
void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
AllocExclusive();
M_BRUSHDATA->SetColour(wxColour(r, g, b));
}
void wxBrush::SetStyle(wxBrushStyle style)
{
AllocExclusive();
M_BRUSHDATA->SetStyle(style);
}
void wxBrush::SetStipple(const wxBitmap& stipple)
{
AllocExclusive();
M_BRUSHDATA->SetStipple(stipple);
}
|
airgames/vuforia-gamekit-integration
|
Gamekit/wxWidgets-2.9.1/src/msw/brush.cpp
|
C++
|
mit
| 9,652 |
package org.trifort.rootbeer.generate.bytecode;
import java.util.HashSet;
import java.util.Set;
public class JavaNumberTypes {
private Set<String> m_types;
public JavaNumberTypes(){
m_types = new HashSet<String>();
m_types.add("java.lang.Byte");
m_types.add("java.lang.Boolean");
m_types.add("java.lang.Character");
m_types.add("java.lang.Short");
m_types.add("java.lang.Integer");
m_types.add("java.lang.Long");
m_types.add("java.lang.Float");
m_types.add("java.lang.Double");
}
public Set<String> get(){
return m_types;
}
}
|
yarenty/rootbeer1
|
src/org/trifort/rootbeer/generate/bytecode/JavaNumberTypes.java
|
Java
|
mit
| 585 |
# Helper methods for per-User preferences
module PreferencesHelper
def layout_choices
[
['固定', :fixed],
['自适应', :fluid]
]
end
# Maps `dashboard` values to more user-friendly option text
DASHBOARD_CHOICES = {
projects: '你的项目 (默认)',
stars: '星标项目',
project_activity: "你的项目活动",
starred_project_activity: "星标项目活动",
groups: "你的群组",
todos: "你的代办事项"
}.with_indifferent_access.freeze
# Returns an Array usable by a select field for more user-friendly option text
def dashboard_choices
defined = User.dashboards
if defined.size != DASHBOARD_CHOICES.size
# Ensure that anyone adding new options updates this method too
raise RuntimeError, "`User` defines #{defined.size} dashboard choices," +
" but `DASHBOARD_CHOICES` defined #{DASHBOARD_CHOICES.size}."
else
defined.map do |key, _|
# Use `fetch` so `KeyError` gets raised when a key is missing
[DASHBOARD_CHOICES.fetch(key), key]
end
end
end
def project_view_choices
[
['Readme (默认)', :readme],
['活动视图', :activity],
['文件视图', :files]
]
end
def user_application_theme
Gitlab::Themes.for_user(current_user).css_class
end
def user_color_scheme
Gitlab::ColorSchemes.for_user(current_user).css_class
end
def default_project_view
current_user ? current_user.project_view : 'readme'
end
end
|
larryli/gitlabhq
|
app/helpers/preferences_helper.rb
|
Ruby
|
mit
| 1,510 |
{% extends '../layouts/template.html' %}
{% block title %}Check your State Pension {{mvpversion}}{% endblock %}
{% block serviceName %}Check your State Pension{% endblock %}
{% block main %}
<div class="grid-row">
<div class="column-two-thirds">
<a href="javascript:window.history.back();" class="example-back-link">Back</a>
<h2 class="heading-large">Paying voluntary contributions</h2>
<p><span class="heading-medium">Pay {{ cost }}</span><br />to improve your pension forecast from £130.10 to {{ increase }} a week</p>
<p>this will give you an extra:</p>
<ul class="list-bullet">
<li>{{ week }} a week</li>
<li>{{ month }} a month</li>
<li>{{ year }} a year</li>
</ul>
<h3 class="heading-medium">Before you pay</h3>
<p>Paying {{ cost }} will fill the gap in this year in your record</p>
<ul class="list-bullet">
<li>2012-13</li>
</ul>
<p><a href="ni-years-check">Check your National Insurance record</a> to find out more about the years with gaps. If you have evidence that it’s wrong you can correct it. Correcting your record can fill a gap and improve your pension.</p>
<p><a href="ni-modelling-pay">Consider if paying voluntary contributions is your best option</a>.</p>
<h3 class="heading-medium">Payment by cheque</h3>
<p>You can send your payment to HMRC directly. Make your cheque payable to ‘HM Revenue and Customs only’ followed by your payment reference.</p>
<p>Include a note with:</p>
<ul class="list-bullet">
<li>your name, address and telephone number</li>
<li>your National Insurance number</li>
<li>the years you’re paying for</li>
<li>whether you want a receipt</li>
</ul>
<p>Post it to:</p>
<p>HM Revenue and Customs<br />
National Insurance Contributions and Employer Office<br />
Benton Park View<br />
Newcastle upon Tyne<br />
NE98 1ZZ
</p>
<p>Allow 3 working days for the payment to reach HMRC.</p>
<div class="panel-indent">
<p>It can take around 28 days to update your National Insurance record with any voluntary contributions you make.</p>
</div>
<a href="javascript:window.history.back();" class="example-back-link">Back</a>
</div><!-- /.column-two-thirds -->
<div class="column-third"></div><!-- /.column-third -->
</div><!-- /.grid-row -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#show-all").click(function(){
$("#modelling").show();
$("#personal-max").hide();
});
$("#show-less").click(function(){
$("#modelling").hide();
$("#personal-max").show();
});
});
</script>
{% endblock %}
|
codeArtist2015/nisp-prototype
|
app/views/34/ni/pay-voluntary-contributions29.html
|
HTML
|
mit
| 2,768 |
//
// MARMyVehicleViewController.h
// easywayout
//
// Created by Martin.Liu on 2017/1/6.
// Copyright © 2017年 MAIERSI. All rights reserved.
//
#import "MARBaseViewController.h"
@interface MARMyVehicleViewController : MARBaseViewController
@end
|
liulongdev/ProfilerTest
|
easywayout/easywayout/Modules/MapModule/MARMyVehicleViewController.h
|
C
|
mit
| 255 |
<div class="col-md-3 homepage-post">
1
</div>
<div class="col-md-3 homepage-post">
2
</div>
<div class="col-md-3 homepage-post">
3
</div>
<div class="col-md-3 homepage-post">
4
</div>
|
edstevo/EdStphnsn-FrontEnd-
|
lib/templates/public/home/home.tpl.html
|
HTML
|
mit
| 187 |
/*
* winchar.h
*
* This file is a part of NSIS.
*
* Copyright (C) 1999-2009 Nullsoft and Contributors
*
* Licensed under the zlib/libpng license (the "License");
* you may not use this file except in compliance with the License.
*
* Licence details can be found in the file COPYING.
*
* This software is provided 'as-is', without any express or implied
* warranty.
*
* Reviewed for Unicode support by Jim Park -- 07/31/2007
*/
#include "Platform.h"
WCHAR *winchar_fromansi(const char* s, unsigned int codepage = CP_ACP);
char *winchar_toansi(const WCHAR* ws, unsigned int codepage = CP_ACP);
WCHAR *winchar_strcpy(WCHAR *ws1, const WCHAR *ws2);
WCHAR *winchar_strncpy(WCHAR *ws1, const WCHAR *ws2, size_t n);
size_t winchar_strlen(const WCHAR *ws);
WCHAR *winchar_strdup(const WCHAR *ws);
int winchar_strcmp(const WCHAR *ws1, const WCHAR *ws2);
int winchar_stoi(const WCHAR *ws);
|
jimpark/unsis
|
tools/GetDLLVersion/winchar.h
|
C
|
mit
| 903 |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Index — c3py 0.1 documentation</title>
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="top" title="c3py 0.1 documentation" href="index.html"/>
<script src="_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-nav-search">
<a href="index.html" class="icon icon-home"> c3py
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul>
<li class="toctree-l1"><a class="reference internal" href="chart.html">c3py.Chart</a></li>
<li class="toctree-l1"><a class="reference internal" href="data.html">c3py.data</a></li>
<li class="toctree-l1"><a class="reference internal" href="axes.html">c3py.axes</a></li>
<li class="toctree-l1"><a class="reference internal" href="ticks.html">c3py.ticks</a></li>
<li class="toctree-l1"><a class="reference internal" href="grid.html">c3py.grid</a></li>
<li class="toctree-l1"><a class="reference internal" href="legend.html">c3py.legend</a></li>
<li class="toctree-l1"><a class="reference internal" href="tooltip.html">c3py.tooltip</a></li>
<li class="toctree-l1"><a class="reference internal" href="regions.html">c3py.regions</a></li>
<li class="toctree-l1"><a class="reference internal" href="point.html">c3py.point</a></li>
<li class="toctree-l1"><a class="reference internal" href="size.html">c3py.size</a></li>
<li class="toctree-l1"><a class="reference internal" href="padding.html">c3py.padding</a></li>
</ul>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">c3py</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html">Docs</a> »</li>
<li></li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document">
<h1 id="index">Index</h1>
<div class="genindex-jumpbox">
<a href="#A"><strong>A</strong></a>
| <a href="#B"><strong>B</strong></a>
| <a href="#C"><strong>C</strong></a>
| <a href="#D"><strong>D</strong></a>
| <a href="#G"><strong>G</strong></a>
| <a href="#H"><strong>H</strong></a>
| <a href="#L"><strong>L</strong></a>
| <a href="#P"><strong>P</strong></a>
| <a href="#R"><strong>R</strong></a>
| <a href="#S"><strong>S</strong></a>
| <a href="#T"><strong>T</strong></a>
| <a href="#U"><strong>U</strong></a>
| <a href="#X"><strong>X</strong></a>
| <a href="#Y"><strong>Y</strong></a>
</div>
<h2 id="A">A</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="regions.html#c3py.regions.Regions.add">add() (c3py.regions.Regions method)</a>
</dt>
<dt><a href="data.html#c3py.data.Data.add_labels">add_labels() (c3py.data.Data method)</a>
</dt>
<dt><a href="axes.html#c3py.axes.Axes.add_secondary_y">add_secondary_y() (c3py.axes.Axes method)</a>
</dt>
<dt><a href="data.html#c3py.data.Data.area">area() (c3py.data.Data method)</a>
</dt>
<dt><a href="chart.html#Chart.axes">axes (Chart attribute)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="axes.html#c3py.axes.Axes">Axes (class in c3py.axes)</a>
</dt>
<dt><a href="axes.html#c3py.axes.Axis">Axis (class in c3py.axes)</a>
</dt>
<dt><a href="axes.html#c3py.axes.AxisLabel">AxisLabel (class in c3py.axes)</a>
</dt>
<dt><a href="axes.html#c3py.axes.AxisPadding">AxisPadding (class in c3py.axes)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="B">B</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="data.html#c3py.data.Data.bar">bar() (c3py.data.Data method)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="C">C</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="chart.html#c3py.Chart">Chart (class in c3py)</a>
</dt>
<dt><a href="ticks.html#c3py.ticks.XTicks.cull">cull() (c3py.ticks.XTicks method)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="grid.html#c3py.grid.Grid.custom_grid_line">custom_grid_line() (c3py.grid.Grid method)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="D">D</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="chart.html#Chart.data">data (Chart attribute)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="data.html#c3py.data.Data">Data (class in c3py.data)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="G">G</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="chart.html#c3py.Chart.get_html_string">get_html_string() (c3py.Chart method)</a>
</dt>
<dt><a href="chart.html#Chart.grid">grid (Chart attribute)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="grid.html#c3py.grid.Grid">Grid (class in c3py.grid)</a>
</dt>
<dt><a href="data.html#c3py.data.Data.group_series">group_series() (c3py.data.Data method)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="H">H</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="legend.html#c3py.legend.Legend.hide">hide() (c3py.legend.Legend method)</a>
</dt>
<dd><dl>
<dt><a href="tooltip.html#c3py.tooltip.Tooltip.hide">(c3py.tooltip.Tooltip method)</a>
</dt>
</dl></dd>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="legend.html#c3py.legend.Legend.hide_series">hide_series() (c3py.legend.Legend method)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="L">L</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="axes.html#c3py.axes.Axis.label">label (c3py.axes.Axis attribute)</a>
</dt>
<dt><a href="chart.html#Chart.legend">legend (Chart attribute)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="legend.html#c3py.legend.Legend">Legend (class in c3py.legend)</a>
</dt>
<dt><a href="data.html#c3py.data.Data.line">line() (c3py.data.Data method)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="P">P</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="axes.html#c3py.axes.Axis.padding">padding (c3py.axes.Axis attribute)</a>
</dt>
<dd><dl>
<dt><a href="chart.html#Chart.padding">(Chart attribute)</a>
</dt>
</dl></dd>
<dt><a href="padding.html#c3py.padding.Padding">Padding (class in c3py.padding)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="chart.html#Chart.point">point (Chart attribute)</a>
</dt>
<dt><a href="point.html#c3py.point.Point">Point (class in c3py.point)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="R">R</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="chart.html#Chart.regions">regions (Chart attribute)</a>
</dt>
<dt><a href="regions.html#c3py.regions.Regions">Regions (class in c3py.regions)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="ticks.html#c3py.ticks.XTicks.rotate">rotate() (c3py.ticks.XTicks method)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="S">S</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="data.html#c3py.data.Data.scatter">scatter() (c3py.data.Data method)</a>
</dt>
<dt><a href="axes.html#c3py.axes.AxisLabel.set">set() (c3py.axes.AxisLabel method)</a>
</dt>
<dd><dl>
<dt><a href="axes.html#c3py.axes.AxisPadding.set">(c3py.axes.AxisPadding method)</a>
</dt>
<dt><a href="padding.html#c3py.padding.Padding.set">(c3py.padding.Padding method)</a>
</dt>
<dt><a href="size.html#c3py.size.Size.set">(c3py.size.Size method)</a>
</dt>
</dl></dd>
<dt><a href="padding.html#c3py.padding.Padding.set_bottom">set_bottom() (c3py.padding.Padding method)</a>
</dt>
<dt><a href="ticks.html#c3py.ticks.Ticks.set_count">set_count() (c3py.ticks.Ticks method)</a>
</dt>
<dt><a href="ticks.html#c3py.ticks.XTicks.set_fit">set_fit() (c3py.ticks.XTicks method)</a>
</dt>
<dt><a href="ticks.html#c3py.ticks.Ticks.set_format">set_format() (c3py.ticks.Ticks method)</a>
</dt>
<dt><a href="axes.html#c3py.axes.XAxis.set_height">set_height() (c3py.axes.XAxis method)</a>
</dt>
<dd><dl>
<dt><a href="size.html#c3py.size.Size.set_height">(c3py.size.Size method)</a>
</dt>
</dl></dd>
<dt><a href="padding.html#c3py.padding.Padding.set_left">set_left() (c3py.padding.Padding method)</a>
</dt>
<dt><a href="ticks.html#c3py.ticks.XTicks.set_multiline">set_multiline() (c3py.ticks.XTicks method)</a>
</dt>
<dt><a href="legend.html#c3py.legend.Legend.set_position">set_position() (c3py.legend.Legend method)</a>
</dt>
<dt><a href="axes.html#c3py.axes.Axis.set_range">set_range() (c3py.axes.Axis method)</a>
</dt>
<dt><a href="axes.html#c3py.axes.Axis.set_range_max">set_range_max() (c3py.axes.Axis method)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="axes.html#c3py.axes.Axis.set_range_min">set_range_min() (c3py.axes.Axis method)</a>
</dt>
<dt><a href="padding.html#c3py.padding.Padding.set_right">set_right() (c3py.padding.Padding method)</a>
</dt>
<dt><a href="tooltip.html#c3py.tooltip.TooltipFormat.set_title">set_title() (c3py.tooltip.TooltipFormat method)</a>
</dt>
<dt><a href="padding.html#c3py.padding.Padding.set_top">set_top() (c3py.padding.Padding method)</a>
</dt>
<dt><a href="axes.html#c3py.axes.XAxis.set_type">set_type() (c3py.axes.XAxis method)</a>
</dt>
<dt><a href="ticks.html#c3py.ticks.Ticks.set_values">set_values() (c3py.ticks.Ticks method)</a>
</dt>
<dt><a href="axes.html#c3py.axes.Axis.set_visibility">set_visibility() (c3py.axes.Axis method)</a>
</dt>
<dd><dl>
<dt><a href="point.html#c3py.point.Point.set_visibility">(c3py.point.Point method)</a>
</dt>
</dl></dd>
<dt><a href="size.html#c3py.size.Size.set_width">set_width() (c3py.size.Size method)</a>
</dt>
<dt><a href="grid.html#c3py.grid.Grid.show">show() (c3py.grid.Grid method)</a>
</dt>
<dt><a href="chart.html#Chart.size">size (Chart attribute)</a>
</dt>
<dt><a href="size.html#c3py.size.Size">Size (class in c3py.size)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="T">T</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="axes.html#c3py.axes.Axis.ticks">ticks (c3py.axes.Axis attribute)</a>
</dt>
<dt><a href="ticks.html#c3py.ticks.Ticks">Ticks (class in c3py.ticks)</a>
</dt>
<dt><a href="chart.html#Chart.tooltip">tooltip (Chart attribute)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="tooltip.html#c3py.tooltip.Tooltip">Tooltip (class in c3py.tooltip)</a>
</dt>
<dt><a href="tooltip.html#c3py.tooltip.TooltipFormat">TooltipFormat (class in c3py.tooltip)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="U">U</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="tooltip.html#c3py.tooltip.Tooltip.ungroup">ungroup() (c3py.tooltip.Tooltip method)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="X">X</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="axes.html#c3py.axes.Axes.x_axis">x_axis (c3py.axes.Axes attribute)</a>
</dt>
<dt><a href="axes.html#c3py.axes.XAxis">XAxis (class in c3py.axes)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="ticks.html#c3py.ticks.XTicks">XTicks (class in c3py.ticks)</a>
</dt>
</dl></td>
</tr></table>
<h2 id="Y">Y</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>
<dt><a href="axes.html#c3py.axes.Axes.y2_axis">y2_axis (c3py.axes.Axes attribute)</a>
</dt>
<dt><a href="axes.html#c3py.axes.Axes.y_axis">y_axis (c3py.axes.Axes attribute)</a>
</dt>
</dl></td>
<td style="width: 33%" valign="top"><dl>
<dt><a href="axes.html#c3py.axes.YAxis">YAxis (class in c3py.axes)</a>
</dt>
<dt><a href="ticks.html#c3py.ticks.YTicks">YTicks (class in c3py.ticks)</a>
</dt>
</dl></td>
</tr></table>
</div>
<footer>
<hr/>
<div role="contentinfo">
<p>
© Copyright 2015, Harshil Shah.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'0.1',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>
|
harshil-shah/c3py
|
docs/_build/html/genindex.html
|
HTML
|
mit
| 15,522 |
from __future__ import unicode_literals, division, absolute_import
from tests import FlexGetBase, build_parser_function
from flexget.entry import Entry
class BaseEmitSeries(FlexGetBase):
__yaml__ = """
tasks:
inject_series:
series:
- Test Series 1
- Test Series 2:
quality: 1080p
- Test Series 3
- Test Series 4
- Test Series 5
- Test Series 6
- Test Series 7
- Test Series 8
test_emit_series_backfill:
emit_series:
backfill: yes
series:
- Test Series 1:
tracking: backfill
identified_by: ep
rerun: 0
test_emit_series_rejected:
emit_series:
backfill: yes
series:
- Test Series 2:
tracking: backfill
identified_by: ep
rerun: 0
test_emit_series_from_start:
emit_series: yes
series:
- Test Series 3:
from_start: yes
identified_by: ep
rerun: 0
test_emit_series_begin:
emit_series: yes
series:
- Test Series 4:
begin: S03E03
identified_by: ep
rerun: 0
test_emit_series_begin_and_backfill:
emit_series:
backfill: yes
series:
- Test Series 5:
begin: S02E02
tracking: backfill
rerun: 0
test_emit_series_begin_backfill_and_rerun:
emit_series:
backfill: yes
series:
- Test Series 6:
begin: S02E02
tracking: backfill
mock_output: yes
rerun: 1
test_emit_series_backfill_advancement:
emit_series:
backfill: yes
series:
- Test Series 7:
identified_by: ep
tracking: backfill
regexp:
reject:
- .
test_emit_series_advancement:
emit_series: yes
series:
- Test Series 8:
identified_by: ep
regexp:
reject:
- .
test_emit_series_alternate_name:
emit_series: yes
series:
- Test Series 8:
begin: S01E01
alternate_name:
- Testing Series 8
- Tests Series 8
rerun: 0
mock_output: yes
test_emit_series_alternate_name_duplicates:
emit_series: yes
series:
- Test Series 8:
begin: S01E01
alternate_name:
- Testing Series 8
- Testing SerieS 8
rerun: 0
mock_output: yes
"""
def inject_series(self, release_name):
self.execute_task('inject_series', options = {'inject': [Entry(title=release_name, url='')]})
def test_emit_series_backfill(self):
self.inject_series('Test Series 1 S02E01')
self.execute_task('test_emit_series_backfill')
assert self.task.find_entry(title='Test Series 1 S01E01')
assert self.task.find_entry(title='Test Series 1 S02E02')
self.execute_task('test_emit_series_backfill')
assert self.task.find_entry(title='Test Series 1 S01E02')
assert self.task.find_entry(title='Test Series 1 S02E03')
self.inject_series('Test Series 1 S02E08')
self.execute_task('test_emit_series_backfill')
assert self.task.find_entry(title='Test Series 1 S01E03')
assert self.task.find_entry(title='Test Series 1 S02E04')
assert self.task.find_entry(title='Test Series 1 S02E05')
assert self.task.find_entry(title='Test Series 1 S02E06')
assert self.task.find_entry(title='Test Series 1 S02E07')
def test_emit_series_rejected(self):
self.inject_series('Test Series 2 S01E03 720p')
self.execute_task('test_emit_series_rejected')
assert self.task.find_entry(title='Test Series 2 S01E01')
assert self.task.find_entry(title='Test Series 2 S01E02')
assert self.task.find_entry(title='Test Series 2 S01E03')
def test_emit_series_from_start(self):
self.inject_series('Test Series 3 S01E03')
self.execute_task('test_emit_series_from_start')
assert self.task.find_entry(title='Test Series 3 S01E01')
assert self.task.find_entry(title='Test Series 3 S01E02')
assert self.task.find_entry(title='Test Series 3 S01E04')
self.execute_task('test_emit_series_from_start')
assert self.task.find_entry(title='Test Series 3 S01E05')
def test_emit_series_begin(self):
self.execute_task('test_emit_series_begin')
assert self.task.find_entry(title='Test Series 4 S03E03')
def test_emit_series_begin_and_backfill(self):
self.execute_task('test_emit_series_begin_and_backfill')
# with backfill and begin, no backfilling should be done
assert self.task.find_entry(title='Test Series 5 S02E02')
def test_emit_series_begin_backfill_and_rerun(self):
self.execute_task('test_emit_series_begin_backfill_and_rerun')
# with backfill and begin, no backfilling should be done
assert len(self.task.mock_output) == 2 # Should have S02E02 and S02E03
def test_emit_series_backfill_advancement(self):
self.inject_series('Test Series 7 S02E01')
self.execute_task('test_emit_series_backfill_advancement')
assert self.task._rerun_count == 1
assert len(self.task.all_entries) == 1
assert self.task.find_entry('rejected', title='Test Series 7 S03E01')
def test_emit_series_advancement(self):
self.inject_series('Test Series 8 S01E01')
self.execute_task('test_emit_series_advancement')
assert self.task._rerun_count == 1
assert len(self.task.all_entries) == 1
assert self.task.find_entry('rejected', title='Test Series 8 S02E01')
def test_emit_series_alternate_name(self):
self.execute_task('test_emit_series_alternate_name')
assert len(self.task.mock_output) == 1
# There should be 2 alternate names
assert len(self.task.mock_output[0].get('series_alternate_names')) == 2
assert ['Testing Series 8', 'Tests Series 8'].sort() == \
self.task.mock_output[0].get('series_alternate_names').sort(), 'Alternate names do not match (how?).'
def test_emit_series_alternate_name_duplicates(self):
self.execute_task('test_emit_series_alternate_name_duplicates')
assert len(self.task.mock_output) == 1
# duplicate alternate names should only result in 1
# even if it is not a 'complete match' (eg. My Show == My SHOW)
assert len(self.task.mock_output[0].get('series_alternate_names')) == 1, 'Duplicate alternate names.'
def test_emit_series_search_strings(self):
# This test makes sure that the number of search strings increases when the amount of alt names increases.
self.execute_task('test_emit_series_alternate_name_duplicates')
s1 = len(self.task.mock_output[0].get('search_strings'))
self.execute_task('test_emit_series_alternate_name')
s2 = len(self.task.mock_output[0].get('search_strings'))
assert s2 > s1, 'Alternate names did not create sufficient search strings.'
class TestGuessitEmitSeries(BaseEmitSeries):
def __init__(self):
super(TestGuessitEmitSeries, self).__init__()
self.add_tasks_function(build_parser_function('guessit'))
class TestInternalEmitSeries(BaseEmitSeries):
def __init__(self):
super(TestInternalEmitSeries, self).__init__()
self.add_tasks_function(build_parser_function('internal'))
|
tvcsantos/Flexget
|
tests/test_emit_series.py
|
Python
|
mit
| 8,012 |
local cpml = require "cpml"
local Class = require "hump.class"
local iqm = require "iqm"
local Entity = Class {}
function Entity:init(object)
self.type = "entity"
self.position = object.position or cpml.vec3(0, 0, 0)
self.orientation = object.orientation or cpml.quat(0, 0, 0, 1)
self.scale = object.scale or cpml.vec3(1, 1, 1)
self.shadow_scale = object.shadow_scale or cpml.vec3(1, 1, 1)
self.model_matrix = cpml.mat4()
self.active_animation = {}
self.active_interpolation = {}
self.id = 0
self.dt = 0
self.paused = false
self.name = object.name or "Tsubasa"
self.hp = object.hp
self.max_hp = object.hp
self.attacks = object.attacks or {}
if object.model and love.filesystem.isFile(object.model) then
self.model = iqm.load(object.model)
self.model:load_shader(object.shader)
self.model:load_material(object.material)
end
end
function Entity:update(dt)
if self.paused then return end
if self.active_animation.name then
self.dt = self.dt + dt
if self.dt >= 1 / self.active_animation.framerate then
self.dt = self.dt - 1 / self.active_animation.framerate
self:next_frame()
end
end
if self.active_interpolation.name then
self.dt = self.dt + dt
if self.dt >= self.active_interpolation.length then
self.dt = self.dt - self.active_interpolation.length
end
self:next_interpolated_frame()
end
end
function Entity:draw(map_data, model)
map_data = map_data or {}
if self.model.shader then
love.graphics.setShader(self.model.shader)
for _, buffer in ipairs(self.model.vertex_buffer) do
local mtl = self.model.materials[buffer.material]
if mtl then
self.model.shader:send("u_Ka", mtl.ka)
self.model.shader:send("u_Kd", mtl.kd)
self.model.shader:send("u_Ks", mtl.ks)
self.model.shader:send("u_Ns", mtl.ns)
self.model.shader:sendInt("u_shading", mtl.illum)
self.model.shader:send("u_map_Kd", self.model:get_texture(mtl.map_kd))
end
self.model.shader:send("u_map_Kr", self.model:get_texture("assets/textures/rough-aluminum.jpg"))
self.model.shader:send("u_Kr", { 0.1, 0.1, 0.1 })
self.model.shader:send("u_Nf", 0.0)
if self.active_animation.current_frame then
self:send_frame()
elseif self.active_interpolation.frame then
self:send_interpolated_frame()
else
self.model.shader:sendInt("u_skinning", 0)
end
local name = buffer.name
if map_data[name] then
self.model.shader:send("u_model", (map_data[name] * model):to_vec4s())
love.graphics.draw(buffer.mesh)
self.model.shader:send("u_model", model:to_vec4s())
else
love.graphics.draw(buffer.mesh)
end
end
love.graphics.setShader()
end
end
function Entity:animate(animation, next)
self.active_interpolation = {}
if not self.model.rigged then
self.active_animation.name = nil
self.active_animation.current_frame = false
self.model.shader:sendInt("u_skinning", 0)
return
end
local ani = assert(self.model.data.animation[animation], string.format("No such animation: %s", animation))
local buffer = self.model.animation_buffer[animation]
self.active_animation = {}
self.active_animation.name = animation
self.active_animation.frame = buffer
self.active_animation.framerate = ani.framerate
self.active_animation.loop = ani.loop
self.active_animation.next = next
self.active_animation.current_frame = 0
self:next_frame()
end
function Entity:next_frame()
if self.paused then return end
local anim = self.active_animation
if anim.current_frame then
if anim.current_frame < #anim.frame then
anim.current_frame = anim.current_frame + 1
return
elseif anim.current_frame == #anim.frame and not anim.next and anim.loop then
anim.current_frame = 1
return
elseif anim.current_frame == #anim.frame and anim.next then
if type(anim.next) == "function" then
anim.next(self, anim.name)
anim.next = nil
else
self:animate(anim.next)
end
return
end
end
anim.current_frame = false
end
function Entity:send_frame()
local f = self.active_animation.frame
local cf = self.active_animation.current_frame
self.model.shader:send("u_bone_matrices", unpack(f[cf]))
self.model.shader:sendInt("u_skinning", 1)
end
function Entity:interpolate(animation, frame_start, frame_end, length)
--[[
animation = "keyframes"
frame_start = 1
frame_end = 2
length = 1.35 -- seconds
--]]
self.active_animation = {}
if not self.model.rigged then
self.active_interpolation.name = nil
self.active_interpolation.current_frame = false
self.model.shader:sendInt("u_skinning", 0)
return
end
local ani = assert(self.model.data.animation[animation], string.format("No such animation: %s", animation))
self.active_interpolation = {}
self.active_interpolation.name = animation
self.active_interpolation.frame_start = frame_start
self.active_interpolation.frame_end = frame_end
self.active_interpolation.length = length
self.active_interpolation.loop = ani.loop
self:next_interpolated_frame()
end
function Entity:next_interpolated_frame()
local p1, p2 = cpml.vec3(0, 0, 0), cpml.vec3(0, 0, 0)
local r1, r2 = cpml.quat(0, 0, 0, 1), cpml.quat(0, 0, 0, 1)
local s1, s2 = cpml.vec3(1, 1, 1), cpml.vec3(1, 1, 1)
local function calc_bone_matrix(pq1, pq2, s)
p1.x, p1.y, p1.z = pq1[1], pq1[2], pq1[3]
p2.x, p2.y, p2.z = pq2[1], pq2[2], pq2[3]
r1.x, r1.y, r1.z, r1.w = pq1[4], pq1[5], pq1[6], pq1[7]
r2.x, r2.y, r2.z, r2.w = pq2[4], pq2[5], pq2[6], pq2[7]
s1.x, s1.y, s1.z = pq1[8], pq1[9], pq1[10]
s2.x, s2.y, s2.z = pq2[8], pq2[9], pq2[10]
local pos = p1:lerp(p2, s)
local rot = r1:slerp(r2, s)
local scale = s1:lerp(s2, s)
local out = cpml.mat4()
:translate(pos)
:rotate(rot)
:scale(scale)
return out
end
self.active_interpolation.frame = {}
local transform = {}
local animation = self.active_interpolation
local ani = self.model.data.animation[animation.name]
local pq_start = ani.frame[animation.frame_start].pq
local pq_end = ani.frame[animation.frame_end].pq
for i, pq1 in ipairs(pq_start) do
local joint = self.model.data.joint[i]
local pq2 = pq_end[i]
local position = self.dt / animation.length -- 0..1
local m = calc_bone_matrix(pq1, pq2, position)
local render = cpml.mat4()
if joint.parent > 0 then
assert(joint.parent < i)
transform[i] = m * transform[joint.parent]
render = self.model.inverse_base[i] * transform[i]
else
transform[i] = m
render = self.model.inverse_base[i] * m
end
table.insert(self.active_interpolation.frame, render:to_vec4s())
end
end
function Entity:send_interpolated_frame()
local f = self.active_interpolation.frame
self.model.shader:send("u_bone_matrices", unpack(f))
self.model.shader:sendInt("u_skinning", 1)
end
function Entity:play()
self.paused = false
end
function Entity:pause()
self.paused = true
end
function Entity:stop()
self.active_animation = {}
self.active_interpolation = {}
end
return Entity
|
Amadiro/obtuse-tanuki
|
entity.lua
|
Lua
|
mit
| 7,188 |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z" />
, 'TvOutlined');
|
callemall/material-ui
|
packages/material-ui-icons/src/TvOutlined.js
|
JavaScript
|
mit
| 256 |
#### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/ship/crafted/shields/shared_shield_intensifier_mk1.iff"
result.attribute_template_id = 8
result.stfName("space_crafting_n","shield_intensifier_mk1")
#### BEGIN MODIFICATIONS ####
#### END MODIFICATIONS ####
return result
|
anhstudios/swganh
|
data/scripts/templates/object/tangible/ship/crafted/shields/shared_shield_intensifier_mk1.py
|
Python
|
mit
| 485 |
import path from 'path'
global.__wdio = {
onPrepare: {},
before: {},
beforeFeature: {},
beforeScenario: {},
beforeStep: {},
beforeCommand: {},
afterCommand: {},
afterStep: {},
afterScenario: {},
afterFeature: {},
after: {},
onComplete: {}
}
export default {
capabilities: {
browserName: 'chrome'
},
cucumberOpts: {
timeout: 5000,
require: [path.join(__dirname, '/step-definitions.js')]
},
before: (...args) => {
global.__wdio.before.start = new Date().getTime()
browser.pause(500)
global.__wdio.before.end = new Date().getTime()
},
beforeFeature: (...args) => {
global.__wdio.beforeFeature.start = new Date().getTime()
browser.pause(500)
global.__wdio.beforeFeature.end = new Date().getTime()
},
beforeScenario: (...args) => {
global.__wdio.beforeScenario.start = new Date().getTime()
browser.pause(500)
global.__wdio.beforeScenario.end = new Date().getTime()
},
beforeStep: (...args) => {
global.__wdio.beforeStep.start = new Date().getTime()
browser.pause(500)
global.__wdio.beforeStep.end = new Date().getTime()
},
beforeCommand: (...args) => {
global.__wdio.beforeCommand.start = new Date().getTime()
browser.pause(500)
global.__wdio.beforeCommand.end = new Date().getTime()
},
afterCommand: (...args) => {
global.__wdio.afterCommand.start = new Date().getTime()
browser.pause(500)
global.__wdio.afterCommand.end = new Date().getTime()
},
afterStep: (...args) => {
global.__wdio.afterStep.start = new Date().getTime()
browser.pause(500)
global.__wdio.afterStep.end = new Date().getTime()
},
afterScenario: (...args) => {
global.__wdio.afterScenario.start = new Date().getTime()
browser.pause(500)
global.__wdio.afterScenario.end = new Date().getTime()
},
afterFeature: (...args) => {
global.__wdio.afterFeature.start = new Date().getTime()
browser.pause(500)
global.__wdio.afterFeature.end = new Date().getTime()
},
after: (...args) => {
global.__wdio.after.start = new Date().getTime()
browser.pause(500)
global.__wdio.after.end = new Date().getTime()
}
}
|
webdriverio/wdio-cucumber-framework
|
test/fixtures/hooks.using.wdio.commands.js
|
JavaScript
|
mit
| 2,373 |
using System.Collections.Generic;
using ZKWeb.Localize;
using ZKWebStandard.Extensions;
using ZKWebStandard.Ioc;
namespace ZKWeb.Plugins.Testing.WebTester.src.Components.Translates {
/// <summary>
/// 中文翻译
/// </summary>
[ExportMany, SingletonReuse]
public class zh_CN : ITranslateProvider {
private static HashSet<string> Codes = new HashSet<string>() { "zh-CN" };
private static Dictionary<string, string> Translates = new Dictionary<string, string>()
{
{ "WebTester", "网页单元测试器" },
{ "Support running tests from admin panel", "支持在管理员后台运行测试" },
{ "UnitTest", "单元测试" },
{ "Run", "运行" },
{ "Assembly", "程序集" },
{ "Passed", "通过" },
{ "Skipped", "跳过" },
{ "Failed", "失败" },
{ "ErrorMessage", "错误消息" },
{ "DebugMessage", "除错消息" },
{ "Start", "开始" },
{ "StartAll", "全部开始" },
{ "ResetAll", "全部重置" },
{ "NotRunning", "未运行" },
{ "WaitingToRun", "等待运行" },
{ "Running", "运行中" },
{ "FinishedRunning", "运行完毕" },
{ "Getting", "获取中" },
{ "Request submitted, wait processing", "请求已提交,正在等待处理" },
{ "Function Test", "功能测试" },
{ "Run tests", "运行测试" }
};
public bool CanTranslate(string code) {
return Codes.Contains(code);
}
public string Translate(string text) {
return Translates.GetOrDefault(text);
}
}
}
|
zkweb-framework/ZKWeb.Plugins
|
src/ZKWeb.Plugins/Testing.WebTester/src/Components/Translates/zh_CN.cs
|
C#
|
mit
| 1,519 |
function New-CakeSetup {
Invoke-RestMethod `
-Uri "https://raw.githubusercontent.com/cake-build/bootstrapper/master/res/scripts/build.cake" `
-OutFile "build.cake"
Invoke-RestMethod `
-Uri "https://raw.githubusercontent.com/cake-build/bootstrapper/master/res/scripts/build.ps1" `
-OutFile "run.ps1"
}
|
dotnetzero/script
|
src/functions/New-CakeSetup.ps1
|
PowerShell
|
mit
| 341 |
<?php
/**
* @package framework
* @copyright Copyright (c) 2005-2020 The Regents of the University of California.
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Components\Courses\Tests;
$componentPath = Component::path('com_courses');
require_once "$componentPath/helpers/queryAddColumnStatement.php";
use Hubzero\Test\Basic;
use Components\Courses\Helpers\QueryAddColumnStatement;
class QueryAddColumnStatementTest extends Basic
{
/**
* Test toString returns correct string when name and type provided
*
* @return void
*/
public function testToStringReturnsCorrectStringWhenNameAndTypeProvided()
{
$columnData = [
'name' => 'test',
'type' => 'varchar(255)'
];
$addColumnStatement = new QueryAddColumnStatement($columnData);
$expectedStatement = 'ADD COLUMN test varchar(255)';
$actualStatement = $addColumnStatement->toString();
$this->assertEquals($expectedStatement, $actualStatement);
}
/**
* Test toString returns correct string when restriction provided
*
* @return void
*/
public function testToStringReturnsCorrectStringWhenRestrictionProvided()
{
$columnData = [
'name' => 'test',
'type' => 'varchar(255)',
'restriction' => 'NOT NULL'
];
$addColumnStatement = new QueryAddColumnStatement($columnData);
$expectedStatement = 'ADD COLUMN test varchar(255) NOT NULL';
$actualStatement = $addColumnStatement->toString();
$this->assertEquals($expectedStatement, $actualStatement);
}
/**
* Test toString returns correct string when default provided
*
* @return void
*/
public function testToStringReturnsCorrectStringWhenDefaultProvided()
{
$columnData = [
'name' => 'test',
'type' => 'varchar(255)',
'default' => "'foo'"
];
$addColumnStatement = new QueryAddColumnStatement($columnData);
$expectedStatement = "ADD COLUMN test varchar(255) DEFAULT 'foo'";
$actualStatement = $addColumnStatement->toString();
$this->assertEquals($expectedStatement, $actualStatement);
}
/**
* Test toString returns correct string when restriction and default provided
*
* @return void
*/
public function testToStringReturnsCorrectStringWhenRestrictionAndDefaultProvided()
{
$columnData = [
'name' => 'test',
'type' => 'varchar(255)',
'restriction' => 'NOT NULL',
'default' => "'foo'"
];
$addColumnStatement = new QueryAddColumnStatement($columnData);
$expectedStatement = "ADD COLUMN test varchar(255) NOT NULL DEFAULT 'foo'";
$actualStatement = $addColumnStatement->toString();
$this->assertEquals($expectedStatement, $actualStatement);
}
/**
* Test toString returns correct string when restriction and default 0
*
* @return void
*/
public function testToStringReturnsCorrectStringWhenRestrictionAndDefaultZero()
{
$columnData = [
'name' => 'test',
'type' => 'varchar(255)',
'restriction' => 'NOT NULL',
'default' => 0
];
$addColumnStatement = new QueryAddColumnStatement($columnData);
$expectedStatement = "ADD COLUMN test varchar(255) NOT NULL DEFAULT 0";
$actualStatement = $addColumnStatement->toString();
$this->assertEquals($expectedStatement, $actualStatement);
}
}
|
hubzero/framework
|
src/Content/Migration/tests/queryAddColumnStatementTest.php
|
PHP
|
mit
| 3,177 |
import { Event, SentryRequest, Session } from '@sentry/types';
import { API } from './api';
/** Creates a SentryRequest from an event. */
export declare function sessionToSentryRequest(session: Session, api: API): SentryRequest;
/** Creates a SentryRequest from an event. */
export declare function eventToSentryRequest(event: Event, api: API): SentryRequest;
//# sourceMappingURL=request.d.ts.map
|
jarv/cmdchallenge
|
node_modules/@sentry/core/esm/request.d.ts
|
TypeScript
|
mit
| 397 |
/**
* SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
* **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
* legal reasons.
*/
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){_16.push(key+"="+_18[key]);}
return _16;},getSWFHTML:function(){var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();return true;
}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};
deconcept.SWFObjectUtil.getPlayerVersion=function(){
var _23=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return _23;};
deconcept.PlayerVersion=function(_27){
this.major=_27[0]!=null?parseInt(_27[0]):0;
this.minor=_27[1]!=null?parseInt(_27[1]):0;
this.rev=_27[2]!=null?parseInt(_27[2]):0;
};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){
return false;
}return true;};
deconcept.util={getRequestParameter:function(_29){
var q=document.location.search||document.location.hash;
if(q){var _2b=q.substring(1).split("&");
for(var i=0;i<_2b.length;i++){
if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
return "";}};
deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
var _2d=document.getElementsByTagName("OBJECT");
for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){
if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};
deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};
__flash_savedUnloadHandler=function(){};
if(typeof window.onunload=="function"){
var _30=window.onunload;
window.onunload=function(){
deconcept.SWFObjectUtil.cleanupSWFs();_30();};
}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};
if(typeof window.onbeforeunload=="function"){
var oldBeforeUnload=window.onbeforeunload;
window.onbeforeunload=function(){
deconcept.SWFObjectUtil.prepUnload();
oldBeforeUnload();};
}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
if(Array.prototype.push==null){
Array.prototype.push=function(_31){
this[this.length]=_31;
return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;
|
bkinney/infrastructure
|
ruler/swfobject.js
|
JavaScript
|
mit
| 6,862 |
// Finite State Machines
// ---------------------
// State keeps track of basic state information (its containing FSM does most of the work)
var State = function(fsm, name) {
this._fsm = fsm; // parent fsm
this._name = name; // state name (fetch with getName)
this._id = uniqueId(); // useful for storage
};
(function(my) {
var proto = my.prototype;
proto.getName = function() { return this._name; }; // getter for name
proto.id = function() { return this._id; }; // getter for id
}(State));
// Simple transition representation (again, the containing FSM does most of the work)
var Transition = function(fsm, from_state, to_state, name) {
this._fsm = fsm; // parent FSM
this._from = from_state; // from state (fetch with getFrom)
this._to = to_state; // to state (fetch with getTo)
this._name = name; // name (fetch with getName)
this._id = uniqueId(); // useful for storage
this._event = false; // the CJSEvent (if created) for this transition
};
(function(my) {
var proto = my.prototype;
proto.getFrom = function() { return this._from; }; // from getter
proto.getTo = function() { return this._to; }; // to getter
proto.getName = function() { return this._name; }; // name getter
proto.getFSM = function() { return this._fsm; }; // FSM getter
proto.id = function() { return this._id; }; // getter for id
proto.destroy = function() {
var ev = this._event;
if(ev) { ev._removeTransition(this); }
delete this._event;
delete this._fsm;
delete this._from;
delete this._to;
};
proto.setEvent = function(event) { this._event = event; };
proto.run = function() {
var fsm = this.getFSM();
// do_transition should be called by the user's code
if(fsm && fsm.is(this.getFrom())) {
var args = toArray(arguments);
args.unshift(this.getTo(), this);
fsm._setState.apply(fsm, args);
}
};
}(Transition));
/*
* The following selector constructors are used internally to keep track of user-specified
* selectors (a -> b represents the transition from a to b).
*
* Developers using cjs can specify that they want to add listeners for any number of such
* selectors and they will be dynamically evaluated and called. For instance, if the user
* adds a selector for any state to stateA (represented as * -> stateA) *before* stateA is
* created, then if the developer later adds a state named stateA, their callback should be
* called whenever the fsm transitions to that newly created stateA
*/
// The selector for a state with a supplied name (e.g. stateA)
var StateSelector = function(state_name) {
this._state_name = state_name;
};
(function(my) {
var proto = my.prototype;
proto.matches = function(state) {
// Supplied object should be a State object with the given name
return this._state_name === state || (state instanceof State && this._state_name === state.getName());
};
}(StateSelector));
// Matches any state (e.g. *)
var AnyStateSelector = function() { };
(function(my) {
var proto = my.prototype;
// will match any state (but not transition)
// Checking if it isn't a transition (rather than if it is a State) because sometimes, this is
// checked against state *names* rather than the state itself
proto.matches = function(state) { return !(state instanceof Transition);};
}(AnyStateSelector));
// Matches certain transitions (see transition formatting spec)
var TransitionSelector = function(pre, from_state_selector, to_state_selector) {
this.is_pre = pre; // should fire before the transition (as opposed to after)
this.from_state_selector = from_state_selector; // the selector for the from state (should be a StateSelector or AnyStateSelector)
this.to_state_selector = to_state_selector; // selector for the to state
};
(function(my) {
var proto = my.prototype;
// Make sure that the supplied object is a transition with the same timing
proto.matches = function(transition, pre) {
if(transition instanceof Transition && this.is_pre === pre) {
var from_state = transition.getFrom();
var to_state = transition.getTo();
// And then make sure both of the states match as well
return this.from_state_selector.matches(from_state) &&
this.to_state_selector.matches(to_state);
} else { return false; }
};
}(TransitionSelector));
// Multiple possibilities (read OR, not AND)
var MultiSelector = function() {
this.selectors = toArray(arguments); // all of the selectors to test
};
(function(my) {
var proto = my.prototype;
proto.matches = function() {
var match_args = arguments;
// See if any selectors match
return any(this.selectors, function(selector) {
return selector.matches.apply(selector, match_args);
});
};
}(MultiSelector));
// return a selector object from a string representing a single state
var parse_single_state_spec = function(str) {
if(str === "*") {
return new AnyStateSelector();
} else {
return new StateSelector(str);
}
};
// Parse one side of the transition
var parse_state_spec = function(str) {
// Split by , and remove any excess spacing
var state_spec_strs = map(str.split(","), function(ss) { return trim(ss); });
// The user only specified one state
if(state_spec_strs.length === 1) {
return parse_single_state_spec(state_spec_strs[0]);
} else { // any number of states
var state_specs = map(state_spec_strs, parse_single_state_spec);
return new MultiSelector(state_specs);
}
};
// The user specified a transition
var parse_transition_spec = function(left_str, transition_str, right_str) {
var left_to_right_transition, right_to_left_transition;
var left_state_spec = parse_state_spec(left_str);
var right_state_spec = parse_state_spec(right_str);
// Bi-directional, after transition
if(transition_str === "<->") {
left_to_right_transition = new TransitionSelector(false, left_state_spec, right_state_spec);
right_to_left_transition = new TransitionSelector(false, right_state_spec, left_state_spec);
return new MultiSelector(left_to_right_transition, right_to_left_transition);
} else if(transition_str === ">-<") { // bi-directional, before transition
left_to_right_transition = new TransitionSelector(true, left_state_spec, right_state_spec);
right_to_left_transition = new TransitionSelector(true, right_state_spec, left_state_spec);
return new MultiSelector(left_to_right_transition, right_to_left_transition);
} else if(transition_str === "->") { // left to right, after transition
return new TransitionSelector(false, left_state_spec, right_state_spec);
} else if(transition_str === ">-") { // left to right, before transition
return new TransitionSelector(true, left_state_spec, right_state_spec);
} else if(transition_str === "<-") { // right to left, after transition
return new TransitionSelector(false, right_state_spec, left_state_spec);
} else if(transition_str === "-<") { // right to left, before transition
return new TransitionSelector(true, right_state_spec, left_state_spec);
} else { return null; } // There shouldn't be any way to get here...
};
var transition_separator_regex = /^([\sa-zA-Z0-9,\-_*]+)((<->|>-<|->|>-|<-|-<)([\sa-zA-Z0-9,\-_*]+))?$/;
// Given a string specifying a state or set of states, return a selector object
var parse_spec = function(str) {
var matches = str.match(transition_separator_regex);
if(matches === null) {
return null; // Poorly formatted specification
} else {
if(matches[2]) {
// The user specified a transition: "A->b": ["A->b", "A", "->b", "->", "b"]
var from_state_str = matches[1], transition_str = matches[3], to_state_str = matches[4];
return parse_transition_spec(from_state_str, transition_str, to_state_str);
} else {
// The user specified a state: "A": ["A", "A", undefined, undefined, undefined]
var states_str = matches[1];
return parse_state_spec(states_str);
}
}
};
// StateListener
var state_listener_id = 0;
var StateListener = function(selector, callback, context) {
this._context = context || root; // 'this' in the callback
this._selector = selector; // used to record interest
this._callback = callback; // the function to call when selector matches
this._id = state_listener_id++; // unique id
};
(function(my) {
var proto = my.prototype;
// Used to determine if run should be called by the fsm
proto.interested_in = function() { return this._selector.matches.apply(this._selector, arguments); };
// Run the user-specified callback
proto.run = function() { this._callback.apply(this._context, arguments); };
}(StateListener));
/**
* ***Note:*** The preferred way to create a FSM is through the `cjs.fsm` function
* This class represents a finite-state machine to track the state of an interface or component
*
* @private
* @class cjs.FSM
* @classdesc A finite-state machine
* @param {string} ...state_names - Any number of state names for the FSM to have
* @see cjs.fsm
*/
var FSM = function() {
this._states = {}; // simple substate representations
this._transitions = []; // simple transition representations
this._curr_state = null; // the currently active state
this._listeners = []; // listeners for every selector
this._chain_state = null; // used internally for chaining
this._did_transition = false; // keeps track of if any transition has run (so that when the user specifies
// a start state, it knows whether or not to change the current state
/**
* The name of this FSM's active state
* @property {Constraint} cjs.FSM.state
* @example
*
* var my_fsm = cjs.fsm("state1", "state2");
* my_fsm.state.get(); // 'state1'
*/
this.state = cjs(function() { // the name of the current state
if(this._curr_state) { return this._curr_state._name; }
else { return null; }
}, {
context: this
});
// Option to pass in state names as arguments
this.addState.apply(this, flatten(arguments, true));
};
(function(my) {
var proto = my.prototype;
/** @lends cjs.FSM.prototype */
// Find the state with a given name
var getStateWithName = function(fsm, state_name) {
return fsm._states[state_name];
};
/**
* Create states and set the current "chain state" to that state
*
* @method addState
* @param {string} ...state_names - Any number of state names to add. The last state becomes the chain state
* @return {FSM} - `this`
*
* @example
*
* var fsm = cjs.fsm()
* .addState('state1')
* .addState('state2')
* .addTransition('state2', cjs.on('click'));
*/
proto.addState = function() {
var state;
each(arguments, function(state_name) {
state = getStateWithName(this, state_name);
if(!state) {
state = this._states[state_name] = new State(this, state_name);
// if there isn't an active state,
// make this one the starting state by default
if(this._curr_state === null) { this._curr_state = state; }
}
}, this);
if(state) { this._chain_state = state; }
return this;
};
/**
* Returns the name of the state this machine is currently in. Constraints that depend on the return
* value will be automatically updated.
*
* @method getState
* @return {string} - The name of the currently active state
* @example
*
* var my_fsm = cjs.fsm("state1", "state2");
* my_fsm.getState(); // 'state1'
*/
proto.getState = function() {
return this.state.get();
};
/**
* Add a transition between two states
*
* @method addTransition
* @param {string} to_state - The name of the state the transition should go to
* @return {function} - A function that tells the transition to run
* @example
*
* var x = cjs.fsm();
* x.addState("b")
* .addState("a");
* var run_transition = x.addTransition("b");
* //add a transition from a to b
* window.addEventListener("click", run_transition);
* // run that transition when the window is clicked
*/
/**
* (variant 2)
* @method addTransition^2
* @param {string} to_state - The name of the state the transition should go to
* @param {CJSEvent|function} add_transition_fn - A `CJSEvent` or a user-specified function for adding the event listener
* @return {FSM} - `this`
* @example
*
* var x = cjs.fsm();
* x.addState("b")
* .addState("a")
* .addTransition("b", cjs.on('click'));
* // add a transition from a to b that runs when the window is clicked
* @example
*
* var x = cjs.fsm();
* x.addState("b")
* .addState("a")
* .addTransition("b", function(run_transition) {
* window.addEventListener("click", run_transition);
* });
* // add a transition from a to b that runs when the window is clicked
*/
/**
* (variant 3)
* @method addTransition^3
* @param {string} from_state - The name of the state the transition should come from
* @param {string} to_state - The name of the state the transition should go to
* @return {function} - A function that tells the transition to run
* @example
*
* var x = cjs.fsm("a", "b");
* var run_transition = x.addTransition("a", "b"); //add a transition from a to b
* window.addEventListener("click", run_transition); // run that transition when the window is clicked
*/
/**
* (variant 4)
* @method addTransition^4
* @param {string} from_state - The name of the state the transition should come from
* @param {string} to_state - The name of the state the transition should go to
* @param {CJSEvent|function} add_transition_fn - A `CJSEvent` or a user-specified function for adding the event listener
* @return {FSM} - `this`
*
* @example
*
* var x = cjs.fsm("a", "b");
* x.addTransition("a", "b", cjs.on("click"));
* @example
*
* var x = cjs.fsm("a", "b");
* var run_transition = x.addTransition("a", "b", function(run_transition) {
* window.addEventListener("click", run_transition);
* }); // add a transition from a to b that runs when the window is clicked
*/
proto.addTransition = function(a, b, c) {
var from_state, to_state, transition, add_transition_fn, return_transition_func = false;
if(arguments.length === 0) {
throw new Error("addTransition expects at least one argument");
} else if(arguments.length === 1) { // make a transition from the last entered state to the next state
return_transition_func = true;
from_state = this._chain_state;
to_state = a;
} else if(arguments.length === 2) {
if(isFunction(b) || b instanceof CJSEvent) { // b is the function to add the transition
from_state = this._chain_state;
to_state = a;
add_transition_fn = b;
} else { // from and to states specified
from_state = a;
to_state = b;
return_transition_func = true;
}
} else {
from_state = a;
to_state = b;
add_transition_fn = c;
}
if(isString(from_state) && !has(this._states, from_state)) { this._states[from_state] = new State(this, from_state); }
if(isString(to_state) && !has(this._states, to_state)) { this._states[to_state] = new State(this, to_state); }
// do_transition is a function that can be called to activate the transition
// Creates a new transition that will go from from_state to to_state
transition = new Transition(this, from_state, to_state);
this._transitions.push(transition);
if(return_transition_func) {
return bind(transition.run, transition);
} else {
if(add_transition_fn instanceof CJSEvent) {
add_transition_fn._addTransition(transition);
transition.setEvent(add_transition_fn);
} else {
// call the supplied function with the code to actually perform the transition
add_transition_fn.call(this, bind(transition.run, transition), this);
}
return this;
}
};
/**
* Changes the active state of this FSM.
* This function should, ideally, be called by a transition instead of directly.
*
* @private
* @method _setState
* @param {State|string} state - The state to transition to
* @param {Transition} transition - The transition that ran
*/
proto._setState = function(state, transition, event) {
var from_state = this.getState(), // the name of my current state
to_state = isString(state) ? getStateWithName(this, state) : state,
listener_args = this._listeners.length > 0 ?
([event, transition, to_state, from_state]).concat(rest(arguments, 3)) : false;
if(!to_state) {
throw new Error("Could not find state '" + state + "'");
}
this.did_transition = true;
// Look for pre-transition callbacks
each(this._listeners, function(listener) {
if(listener.interested_in(transition, true)) {
listener.run.apply(listener, listener_args); // and run 'em
}
});
this._curr_state = to_state;
this.state.invalidate();
// Look for post-transition callbacks..
// and also callbacks that are interested in state entrance
each(this._listeners, function(listener) {
if(listener.interested_in(transition, false) ||
listener.interested_in(to_state)) {
listener.run.apply(listener, listener_args); // and run 'em
}
});
};
/**
* Remove all of the states and transitions of this FSM. Useful for cleaning up memory
*
* @method destroy
*/
proto.destroy = function() {
this.state.destroy();
this._states = {};
each(this._transitions, function(t) { t.destroy(); });
this._transitions = [];
this._curr_state = null;
};
/**
* Specify which state this FSM should begin at.
*
* @method startsAt
* @param {string} state_name - The name of the state to start at
* @return {FSM} - `this`
* @example
*
* var my_fsm = cjs.fsm("state_a", "state_b");
* my_fsm.startsAt("state_b");
*/
proto.startsAt = function(state_name) {
var state = getStateWithName(this, state_name); // Get existing state
if(!state) {
// or create it if necessary
state = this._states[state_name] = new State(this, state_name);
}
if(!this.did_transition) {
// If no transitions have occurred, set the current state to the one they specified
this._curr_state = state;
this.state.invalidate();
}
this._chain_state = state;
return this;
};
/**
* Check if the current state is `state_name`
*
* @method is
* @param {string} state_name - The name of the state to check against
* @return {boolean} - `true` if the name of the active state is `state_name`. `false` otherwise
* @example
*
* var my_fsm = cjs.fsm("a", "b");
* my_fsm.is("a"); // true, because a is the starting state
*/
proto.is = function(state_name) {
// get the current state name & compare
var state = this.getState();
return state === null ? false : (state === (isString(state_name) ? state_name : state_name.getName()));
};
/**
* Call a given function when the finite-state machine enters a given state.
* `spec` can be of the form:
* - `'*'`: any state
* - `'state1'`: A state named `state1`
* - `'state1 -> state2'`: Immediately **after** state1 transitions to state2
* - `'state1 >- state2'`: Immediately **before** state1 transitions to state2
* - `'state1 <-> state2'`: Immediately **after** any transition between state1 and state2
* - `'state1 >-< state2'`: Immediately **before** any transition between state1 and state2
* - `'state1 <- state2'`: Immediately **after** state2 transitions 2 state1
* - `'state1 -< state2'`: Immediately **before** state2 transitions 2 state1
* - `'state1 -> *'`: Any transition from state1
* - `'* -> state2'`: Any transition to state2
*
* @method on
* @param {string} spec - A specification of which state to call the callback
* @param {function} callback - The function to be called
* @param {object} [context] - What `this` should evaluate to when `callback` is called
* @return {FSM} - `this`
*
* @see FSM.prototype.off
* @example
*
* var x = cjs.fsm("a", "b");
* x.on("a->b", function() {...});
*/
proto.on = proto.addEventListener = function(spec_str, callback, context) {
var selector;
if(isString(spec_str)) {
selector = parse_spec(spec_str);
if(selector === null) {
throw new Error("Unrecognized format for state/transition spec.");
}
} else {
selector = spec_str;
}
var listener = new StateListener(selector, callback, context);
this._listeners.push(listener);
return this;
};
/**
* Remove the listener specified by an on call; pass in just the callback
*
* @method off
* @param {function} callback - The function to remove as a callback
* @return {FSM} - `this`
*
* @see FSM.prototype.on
*/
proto.off = proto.removeEventListener = function(listener_callback) {
this._listeners = filter(this._listeners, function(listener) {
return listener.callback !== listener_callback;
});
return this;
};
}(FSM));
/** @lends */
extend(cjs, {
/** @expose cjs.FSM */
FSM: FSM,
/**
* Create an FSM
* @method cjs.fsm
* @constructs FSM
* @param {string} ...state_names - An initial set of state names to add to the FSM
* @return {FSM} - A new FSM
* @see FSM
* @example Creating a state machine with two states
*
* var my_state = cjs.fsm("state1", "state2");
*/
fsm: function() { return new FSM(arguments); },
/**
* Determine whether an object is an FSM
* @method cjs.isFSM
* @param {*} obj - An object to check
* @return {boolean} - `true` if `obj` is an `FSM`, `false` otherwise
*/
isFSM: function(obj) { return obj instanceof FSM; }
});
|
QuentinRoy/constraintjs
|
src/state_machine/cjs_fsm.js
|
JavaScript
|
mit
| 21,321 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Identity</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../../css/github.css" type="text/css" media="screen" />
<script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="banner">
<span>Ruby on Rails 4.1.8</span><br />
<h1>
<span class="type">Class</span>
ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Identity
<span class="parent"><
<a href="Type.html">ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Type</a>
</span>
</h1>
<ul class="files">
<li><a href="../../../../../files/__/__/__/__/usr/local/share/gems/gems/activerecord-4_1_8/lib/active_record/connection_adapters/mysql_adapter_rb.html">/usr/local/share/gems/gems/activerecord-4.1.8/lib/active_record/connection_adapters/mysql_adapter.rb</a></li>
</ul>
</div>
<div id="bodyContent">
<div id="content">
<!-- Method ref -->
<div class="sectiontitle">Methods</div>
<dl class="methods">
<dt>T</dt>
<dd>
<ul>
<li>
<a href="#method-i-type_cast">type_cast</a>
</li>
</ul>
</dd>
</dl>
<!-- Methods -->
<div class="sectiontitle">Instance Public methods</div>
<div class="method">
<div class="title method-title" id="method-i-type_cast">
<b>type_cast</b>(value)
<a href="../../../../../classes/ActiveRecord/ConnectionAdapters/MysqlAdapter/Fields/Identity.html#method-i-type_cast" name="method-i-type_cast" class="permalink">Link</a>
</div>
<div class="description">
</div>
<div class="sourcecode">
<p class="source-link">
Source:
<a href="javascript:toggleSource('method-i-type_cast_source')" id="l_method-i-type_cast_source">show</a>
</p>
<div id="method-i-type_cast_source" class="dyn-source">
<pre><span class="ruby-comment"># File ../../../../usr/local/share/gems/gems/activerecord-4.1.8/lib/active_record/connection_adapters/mysql_adapter.rb, line 307</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">type_cast</span>(<span class="ruby-identifier">value</span>); <span class="ruby-identifier">value</span>; <span class="ruby-keyword">end</span></pre>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|
mojo1643/Dalal_v2
|
doc/api/classes/ActiveRecord/ConnectionAdapters/MysqlAdapter/Fields/Identity.html
|
HTML
|
mit
| 3,895 |
#include "BootStandalone.hpp"
using namespace HomieInternals;
BootStandalone::BootStandalone()
: Boot("standalone") {
}
BootStandalone::~BootStandalone() {
}
void BootStandalone::setup() {
Boot::setup();
WiFi.mode(WIFI_OFF);
ResetHandler::Attach();
}
void BootStandalone::loop() {
Boot::loop();
}
|
euphi/homie-esp8266
|
src/Homie/Boot/BootStandalone.cpp
|
C++
|
mit
| 314 |
"""
Python 3 Le Bon Coin scraper
MIT License
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Fenimore Love
"""
import sys, requests, os, re, datetime
from bs4 import BeautifulSoup
sample_url= "http://www.leboncoin.fr/informatique/offres/ile_de_france/?ps=4&pe=8&q=thinkpad&th=1"
"""
Designed for computers, but could be used for anything I suppose with the right link
Inside the link parameters:
- th = photographs (0 = none)
- ps = low price
- pe = highest price
- q = keywords (can take and/or operators, and more)
"""
class Corner(object):
title = ""
url = ""
price = ""
location = ""
date = ""
category = ""
image = ""
# constructor the de-structor!!
# I haven't yet actually automated one such method though
def __init__(self, title, url, price, location, date, category, image):
self.title = title
self.url = url
self.price = price
self.location = location
self.date = date
self.category = category
self.image = image
#the stringifing printer.... Python is so pretty
def __str__(self):
return " Titre: %s \n URL: %s \n Prix: %s \n" % (self.title, self.url, self.price)
def get_corners(url):
corner_dicts = scrape_listings(url)
return corner_dicts
def get_recent_corners(url):
corners = scrape_listings(url)
recents = get_recent(corners)
return recents
"""
This is the bread and butter of the program. Scrape Listing
Constructs a dict for each of the from page of a search,
given a url. This can then be put into the Corner object.
Or just handled as a dict.
"""
def scrape_listings(url):
computers = []
r = requests.get(url)
soup = BeautifulSoup(r.text, 'html.parser')
ordinateurs = soup.find_all("div", {"class":"lbc"})
# x = 0 # Counter, Why not?
"""
The ordinateur has english attributes
et le computer a les francais
Duh
Getting images can be tricky, if they don't exist.
Le Bon Coin uses all kinds of weird newline and space oddities
to mess with us. Hence the plentiful (but necessary!)
replace() and strip() functions
"""
for ordinateur in ordinateurs:
url = ordinateur.find_parent('a')['href']
date = ordinateur.find("div", {'class':'date'}).text.replace('\n'," ").strip()
details = ordinateur.find('div', {'class':'detail'})
title = str(details.find('h2', {'class':'title'}).string).replace('\n', '').strip()
category = str(details.find('div', {'class':'category'}).string).replace('\n', '').strip()
placement = str(details.find('div', {'class':'placement'}).string).replace('\n', '').strip().replace(' / '," ")
price = str(details.find('div', {'class':'price'}).string).replace('\n', '').strip()
try:
image_div = ordinateur.find('div', {'class':'image'})
image_nb = image_div.find('div', {'class':'image-and-nb'})
image_url = image_nb.find('img')['src']
except:
image_url = "https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/200px-No_image_available.svg.png" # No-image image
computer = {'url':url, 'titre': title, 'prix': price,'location': placement, 'image': image_url, 'date':date, 'category': category }
computers.append(computer) # A list of Dicts
#x += 1 # Counter, why not?
return computers
"""
Computer = {
url, titre, prix, location, image, date, category = ...
}
"""
def get_recent(computers): # TODAYS listings
recent_computers = []
for computer in computers:
today = str(datetime.datetime.now().day) + '-' + str(datetime.datetime.now().month)
c = re.compile('Aujourd\'hui') # Regex match, this is because of Le Bon Coin's format
if c.match(computer['date']):
computer['date'] = computer['date'].replace('Aujourd\'hui', today)
recent_computers.append(computer)
return recent_computers
|
polypmer/scryp
|
leboncoin/goodcorner.py
|
Python
|
mit
| 4,834 |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Girl Develop It - JS 205 - MVC Frameworks</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="bower_components/reveal.js/css/reveal.min.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700,800' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/theme.css" id="theme">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="bower_components/reveal.js/lib/css/zenburn.css" id="highlight-theme">
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
if( window.location.search.match( /print-pdf/gi ) ) {
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'bower_components/reveal.js/css/print/pdf.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
}
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-html="slides/intro.html"></section>
<section data-html="slides/welcome.html"></section>
<section data-html="slides/introductions.html"></section>
<section data-html="slides/what-well-cover-today.html"></section>
<section data-html="slides/history.html"></section>
<section data-html="slides/web-10.html"></section>
<section data-html="slides/web-20.html"></section>
<section data-html="slides/web-now.html"></section>
<section data-html="slides/big-apps.html"></section>
<section data-html="slides/hulu.html"></section>
<section data-html="slides/twitter.html"></section>
<section data-html="slides/google-maps.html"></section>
<section data-html="slides/big-app-functionality.html"></section>
<section data-html="slides/thats-a-lot-of-js.html"></section>
<section data-html="slides/making-it-manageable.html"></section>
<section data-html="slides/model.html"></section>
<section data-html="slides/view.html"></section>
<section data-html="slides/mvc-javascript.html"></section>
<section data-html="slides/mvc-features.html"></section>
<section data-html="slides/data-binding.html"></section>
<section data-html="slides/two-way-data-binding.html"></section>
<section data-html="slides/view-templates.html"></section>
<section data-html="slides/string-based-templates.html"></section>
<section data-html="slides/dom-based-templates.html"></section>
<section data-html="slides/data-storage.html"></section>
<section data-html="slides/routing.html"></section>
<section data-html="slides/sample-app.html"></section>
<section data-html="slides/book-model-and-collection.html"></section>
<section data-html="slides/book-model.html"></section>
<section data-html="slides/book-object.html"></section>
<section data-html="slides/bookcollection.html"></section>
<section data-html="slides/bookcollection-object.html"></section>
<section data-html="slides/exercise-1.html"></section>
<section data-html="slides/bookshelf-view.html"></section>
<section data-html="slides/bookshelf-view2.html"></section>
<section data-html="slides/whoa-really.html"></section>
<section data-html="slides/bookview.html"></section>
<section data-html="slides/bookshelfview.html"></section>
<section data-html="slides/mvc-bookshelf.html"></section>
<section data-html="slides/exercise-2.html"></section>
<section data-html="slides/mv-frameworks.html"></section>
<section data-html="slides/frameworks.html"></section>
<section data-html="slides/mvc.html"></section>
<section data-html="slides/mvp.html"></section>
<section data-html="slides/mvc-vs-mvp.html"></section>
<section data-html="slides/mvvm.html"></section>
<section data-html="slides/mv.html"></section>
<section data-html="slides/further-reading.html"></section>
<section data-html="slides/todo-mvc.html"></section>
<section data-html="slides/questions.html"></section>
</div>
</div>
<script src="bower_components/reveal.js/lib/js/head.min.js"></script>
<script src="bower_components/reveal.js/js/reveal.min.js"></script>
<script>
// Configure Reveal
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
slideNumber: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'bower_components/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'bower_components/reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'bower_components/reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'bower_components/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'bower_components/reveal.js/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'bower_components/reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
// { src: 'bower_components/reveal.js/plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
//{ src: 'bower_components/reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
{ src: 'js/loadhtmlslides.js', condition: function() { return !!document.querySelector( '[data-html]' ); } }
]
});
</script>
</body>
</html>
|
gdichicago/js205
|
slideshow/index.html
|
HTML
|
mit
| 12,241 |
require 'reek/smells/smell_detector'
require 'reek/smell_warning'
require 'reek/core/smell_configuration'
module Reek
module Smells
#
# A class that publishes a getter or setter for an instance variable
# invites client classes to become too intimate with its inner workings,
# and in particular with its representation of state.
#
# Currently this detector raises a warning for every +attr+,
# +attr_reader+, +attr_writer+ and +attr_accessor+ -- including those
# that are private.
#
# TODO: Eliminate private attributes
# TODO: Catch attributes declared "by hand"
#
class Attribute < SmellDetector
def self.contexts # :nodoc:
[:class, :module]
end
def self.default_config
super.merge(Core::SmellConfiguration::ENABLED_KEY => false)
end
#
# Checks whether the given class declares any attributes.
#
# @return [Array<SmellWarning>]
#
def examine_context(ctx)
attributes_in(ctx).map do |attribute, line|
SmellWarning.new self,
context: ctx.full_name,
lines: [line],
message: "declares the attribute #{attribute}",
parameters: { name: attribute.to_s }
end
end
private
def attributes_in(module_ctx)
result = Set.new
attr_defn_methods = [:attr, :attr_reader, :attr_writer, :attr_accessor]
module_ctx.local_nodes(:send) do |call_node|
if attr_defn_methods.include?(call_node.method_name)
call_node.arg_names.each { |arg| result << [arg, call_node.line] }
end
end
result
end
end
end
end
|
eprislac/guard-yard
|
vendor/ruby/2.0.0/gems/reek-1.6.5/lib/reek/smells/attribute.rb
|
Ruby
|
mit
| 1,753 |
/*
* Floating Point Unit context preservation tests:
* - test_fpu_fcsr - needs context switch. sleep(0)?
* - test_fpu_gpr_preservation - needs context switch. sleep(0)?
* - test_fpu_cpy_ctx_on_fork - needs another process using FPU
* with a little bit of synchronization
* - test_fpu_ctx_signals
*
* Checking 32 FPU FPR's and FPU FCSR register.
* FCCR, FEXR, FENR need not to be saved, because they are only better
* structured views of FCSR.
*/
#include <assert.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include "utest.h"
#define TEST_TIME 1000000
#define PROCESSES 10
#define P_TEST_TIME 100000
#define P_PROCESSES 10
#ifdef __mips__
#define MTC1(var, freg) asm volatile("mtc1 %0, " #freg : : "r"(var))
#define MFC1(var, freg) asm volatile("mfc1 %0, " #freg : "=r"(var))
#define MFC1_ASSERT_CMP(freg) \
do { \
int value; \
MFC1(value, freg); \
assert(value == expected); \
} while (0)
static int check_fpu_all_gpr(void *arg) {
int expected = (int)arg;
MFC1_ASSERT_CMP($f0);
MFC1_ASSERT_CMP($f1);
MFC1_ASSERT_CMP($f2);
MFC1_ASSERT_CMP($f3);
MFC1_ASSERT_CMP($f4);
MFC1_ASSERT_CMP($f5);
MFC1_ASSERT_CMP($f6);
MFC1_ASSERT_CMP($f7);
MFC1_ASSERT_CMP($f8);
MFC1_ASSERT_CMP($f9);
MFC1_ASSERT_CMP($f10);
MFC1_ASSERT_CMP($f11);
MFC1_ASSERT_CMP($f12);
MFC1_ASSERT_CMP($f13);
MFC1_ASSERT_CMP($f14);
MFC1_ASSERT_CMP($f15);
MFC1_ASSERT_CMP($f16);
MFC1_ASSERT_CMP($f17);
MFC1_ASSERT_CMP($f18);
MFC1_ASSERT_CMP($f19);
MFC1_ASSERT_CMP($f20);
MFC1_ASSERT_CMP($f21);
MFC1_ASSERT_CMP($f22);
MFC1_ASSERT_CMP($f23);
MFC1_ASSERT_CMP($f24);
MFC1_ASSERT_CMP($f25);
MFC1_ASSERT_CMP($f26);
MFC1_ASSERT_CMP($f27);
MFC1_ASSERT_CMP($f28);
MFC1_ASSERT_CMP($f29);
MFC1_ASSERT_CMP($f30);
MFC1_ASSERT_CMP($f31);
return 0;
}
static int MTC1_all_gpr(void *_value) {
int value = (int)_value;
MTC1(value, $f0);
MTC1(value, $f1);
MTC1(value, $f2);
MTC1(value, $f3);
MTC1(value, $f4);
MTC1(value, $f5);
MTC1(value, $f6);
MTC1(value, $f7);
MTC1(value, $f8);
MTC1(value, $f9);
MTC1(value, $f10);
MTC1(value, $f11);
MTC1(value, $f12);
MTC1(value, $f13);
MTC1(value, $f14);
MTC1(value, $f15);
MTC1(value, $f16);
MTC1(value, $f17);
MTC1(value, $f18);
MTC1(value, $f19);
MTC1(value, $f20);
MTC1(value, $f21);
MTC1(value, $f22);
MTC1(value, $f23);
MTC1(value, $f24);
MTC1(value, $f25);
MTC1(value, $f26);
MTC1(value, $f27);
MTC1(value, $f28);
MTC1(value, $f29);
MTC1(value, $f30);
MTC1(value, $f31);
return 0;
}
static int check_fpu_ctx(void *value) {
MTC1_all_gpr(value);
for (int i = 0; i < P_TEST_TIME; i++)
check_fpu_all_gpr(value);
return 0;
}
int test_fpu_gpr_preservation(void) {
int seed = 0xbeefface;
for (int i = 0; i < P_PROCESSES; i++)
utest_spawn(check_fpu_ctx, (void *)seed + i);
for (int i = 0; i < PROCESSES; i++)
utest_child_exited(EXIT_SUCCESS);
return 0;
}
int test_fpu_cpy_ctx_on_fork(void) {
void *value = (void *)0xbeefface;
MTC1_all_gpr(value);
utest_spawn(MTC1_all_gpr, (void *)0xc0de);
utest_spawn(check_fpu_all_gpr, (void *)value);
for (int i = 0; i < 2; i++)
utest_child_exited(EXIT_SUCCESS);
return 0;
}
static int check_fcsr(void *arg) {
int expected = (int)arg;
MTC1(expected, $25);
for (int i = 0; i < TEST_TIME; i++)
MFC1_ASSERT_CMP($25);
return 0;
}
int test_fpu_fcsr() {
for (int i = 0; i < PROCESSES; i++)
utest_spawn(check_fcsr, (void *)i);
for (int i = 0; i < PROCESSES; i++)
utest_child_exited(EXIT_SUCCESS);
return 0;
}
static void signal_handler_usr2(int signo) {
MTC1_all_gpr((void *)42);
}
static void signal_handler_usr1(int signo) {
MTC1_all_gpr((void *)1337);
signal(SIGUSR2, signal_handler_usr2);
raise(SIGUSR2);
check_fpu_all_gpr((void *)1337);
}
int test_fpu_ctx_signals(void) {
MTC1_all_gpr((void *)0xc0de);
signal(SIGUSR1, signal_handler_usr1);
raise(SIGUSR1);
check_fpu_all_gpr((void *)0xc0de);
return 0;
}
#endif /* !__mips__ */
|
cahirwpz/wifire-os
|
bin/utest/fpu_ctx.c
|
C
|
mit
| 4,400 |
version https://git-lfs.github.com/spec/v1
oid sha256:6188f39aaecf650bf0e29849fd8bd060f20a2b096447e5d812cc85904762c34d
size 21842
|
yogeshsaroya/new-cdnjs
|
ajax/libs/mathjax/2.5.1/jax/output/SVG/fonts/TeX/Main/Bold/Main.js
|
JavaScript
|
mit
| 130 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/master.css" type="text/css" />
<title>Fullstack Developer at Smoking Brains - Pro Job Seeker</title>
</head>
<body>
<div id="page">
<div id="header" >
<h1><a href="index.html">Pro Job Seeker</a></h1>
<p>Industry leaders <strong>since 2006</strong>. The best companies use our system to find the <strong>best and brightest<strong> professionals.</p>
</div>
<div id="content">
<div class="nav">
<p class="nav-next"><a href="category.html">See more Programming jobs »</a></p>
<p class="nav-prev"><a href="index.html">« Back to all offers</a></p>
</div>
<div id="job-details">
<h1>Crafts(wo)men at Smoking Brains</h1>
<h3>Posted on 14 Nov</h3>
<h2>
<span class="company">Smoking Brains</span>
<span class="location">Location: Barcelona</span>
</h2>
</div>
<div id="job-description">
<p>Smoking Brains is helping great companies to make high quality software, regardless of language, platform or domain. We are leaders in the Software Craftsmanship movement, hosting the anual Software Craftsmanship Barcelona event. Our team of highly talented Crafts(wo)men has a need for a skilled and passionate developer.
<p>The ideal candidate for this position will not only be able to create fantastic software that can be turned into an excellent product, but will be able to interact with our customers to identify their real needs and problems and come up with solutions that are not only simple but beautiful.</p>
</div>
<div class="apply">
<h3>APPLY FOR THIS POSITION</h3>
<p>Please email your resume with cover letter and salary requirements to <strong>[email protected]</strong>. You can use the body of email as your cover letter or attach it separately. No recruiters please.</p>
</div>
<div style="clear:both" ></div>
</div> <!--end div id="content" -->
<div id="footer">
<p>© 2011 Job Listing Company International</p>
</div>
</div>
</body>
</html>
|
josecgil/LearnSpark
|
ProJobSeeker/src/resources/onejob.html
|
HTML
|
mit
| 2,304 |
module Deface
module Sources
class Copy < Source
def self.execute(override)
copy = override.args[:copy]
if copy.is_a? Hash
range = Deface::Matchers::Range.new('Copy', copy[:start], copy[:end]).matches(override.parsed_document).first
Deface::Parser.undo_erb_markup! range.map(&:to_s).join
else
Deface::Parser.undo_erb_markup! override.parsed_document.css(copy).first.to_s.clone
end
end
end
end
end
|
jhawthorn/deface
|
lib/deface/sources/copy.rb
|
Ruby
|
mit
| 482 |
include('shared.lua')
function ENT:Draw( bDontDrawModel )
self.Entity:DrawModel()
local Pos = self:GetPos()
local Ang = self:GetAngles()
local owner = self.Owner
owner = (ValidEntity(owner) and owner:Nick()) or "unknown"
local upgrade = self.Entity:GetNWInt("upgrade")
surface.SetFont("HUDNumber5")
local TextWidth = surface.GetTextSize("Platinum Money Printer")
local TextWidth2 = surface.GetTextSize("Level:"..upgrade)
local TextWidth3 = surface.GetTextSize(owner)
Ang:RotateAroundAxis(Ang:Up(), 90)
local Health = self:GetNWInt("damage") / 10
local DamageColorScale = Color(0, 159, 107, 155)
if Health < 50 then
DamageColorScale = Color(255, 205, 0, 155)
end
if Health < 25 then
DamageColorScale = Color(180, 0, 0, 100)
end
cam.Start3D2D(Pos + Ang:Up() * 13, Ang, 0.2)
draw.WordBox(.75, -TextWidth*0.5, -70, "Platinum Money Printer", "HUDNumber5", Color(229, 228, 226, 155), Color(255,255,255,255))
draw.WordBox(.75, -TextWidth2*0.5, -24, "Level:"..upgrade, "HUDNumber5", Color(229, 228, 226, 155), Color(255,255,255,255))
draw.RoundedBox(5, -TextWidth3*0.5 + 30, 22, math.Clamp(Health,0,100)*2, TextWidth2 * 0.3, DamageColorScale)
cam.End3D2D()
end
--function ENT:Draw( )
--
--
-- self.Entity:DrawModel()
--
-- local Pos = self:GetPos()
-- local Ang = Angle( 0, 0, 0) -- self:GetAngles()
--
-- local upgrade = self.Entity:GetNWInt("upgrade")
-- local owner = self.Owner
-- owner = (ValidEntity(owner) and owner:Nick()) or "Unknown"
--
---- if ply:GetNWEntity( "drawmoneytitle" ) == true then
--
-- surface.SetFont("HUDNumber5")
-- local TextWidth = surface.GetTextSize("Bronze Money Printer")
-- local TextWidth2 = surface.GetTextSize("Level:"..upgrade)
-- local TextWidth3 = surface.GetTextSize(owner)
--
-- Ang:RotateAroundAxis(Ang:Forward(), 90)
-- local TextAng = Ang
-----TextAng, LocalPlayer():GetPos():Distance(self:GetPos()) / 500
--
-- TextAng:RotateAroundAxis(TextAng:Right(), CurTime() * -180)
-- local ply = LocalPlayer
-- cam.Start3D2D(Pos + Ang:Right() * -27, TextAng, 0.15)
-- draw.WordBox(.7, -TextWidth*0.5, -30, "Bronze Money Printer", "HUDNumber5", Color(140, 120, 83, 155), Color(255,255,255,255))
---- draw.WordBox(LocalPlayer():GetPos():Distance(self:GetPos())/2, -TextWidth3*0.5, 60, "Bronze Money Printer", "HUDNumber5", Color(0, 0, 0, 100), Color(255,255,255,255))
-- draw.WordBox(.7, -TextWidth2*0.5, 18, "Level:"..upgrade, "HUDNumber5", Color(140, 120, 83, 155), Color(255,255,255,255))
-- draw.WordBox(.7, -TextWidth3*0.5, 70, owner, "HUDNumber5", Color(140, 120, 83, 155), Color(255,255,255,255))
-- cam.End3D2D()
--end
|
ElectroDuk/QuackWars
|
garrysmod/gamemodes/Basewars/entities(maybe_outdated)/entities/money_printer_platinum/cl_init.lua
|
Lua
|
mit
| 2,611 |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
// Author: abratchik
#define LOG_TAG "org.opencv.utils.Converters"
#include "common.h"
jobject vector_String_to_List(JNIEnv* env, std::vector<cv::String>& vs) {
static jclass juArrayList = ARRAYLIST(env);
static jmethodID m_create = CONSTRUCTOR(env, juArrayList);
jmethodID m_add = LIST_ADD(env, juArrayList);
jobject result = env->NewObject(juArrayList, m_create, vs.size());
for (std::vector<cv::String>::iterator it = vs.begin(); it != vs.end(); ++it) {
jstring element = env->NewStringUTF((*it).c_str());
env->CallBooleanMethod(result, m_add, element);
env->DeleteLocalRef(element);
}
return result;
}
std::vector<cv::String> List_to_vector_String(JNIEnv* env, jobject list)
{
static jclass juArrayList = ARRAYLIST(env);
jmethodID m_size = LIST_SIZE(env,juArrayList);
jmethodID m_get = LIST_GET(env, juArrayList);
jint len = env->CallIntMethod(list, m_size);
std::vector<cv::String> result;
result.reserve(len);
for (jint i=0; i<len; i++)
{
jstring element = static_cast<jstring>(env->CallObjectMethod(list, m_get, i));
const char* pchars = env->GetStringUTFChars(element, NULL);
result.push_back(pchars);
env->ReleaseStringUTFChars(element, pchars);
env->DeleteLocalRef(element);
}
return result;
}
void Copy_vector_String_to_List(JNIEnv* env, std::vector<cv::String>& vs, jobject list)
{
static jclass juArrayList = ARRAYLIST(env);
jmethodID m_clear = LIST_CLEAR(env, juArrayList);
jmethodID m_add = LIST_ADD(env, juArrayList);
env->CallVoidMethod(list, m_clear);
for (std::vector<cv::String>::iterator it = vs.begin(); it != vs.end(); ++it)
{
jstring element = env->NewStringUTF((*it).c_str());
env->CallBooleanMethod(list, m_add, element);
env->DeleteLocalRef(element);
}
}
|
zzjkf2009/Midterm_Astar
|
opencv/modules/java/generator/src/cpp/listconverters.cpp
|
C++
|
mit
| 2,114 |
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_weibo_swift_VersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_weibo_swift_VersionString[];
|
wangleisy/weibo-swift-
|
weibo(swift)/Pods/Target Support Files/Pods-weibo(swift)/Pods-weibo(swift)-umbrella.h
|
C
|
mit
| 156 |
# Changelog
All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
All changes mention the author, unless contributed by me (@derekparker).
## [0.8.1-alpha] 2015-09-05
### Fixed
- OSX: Fix error setting breakpoint upon Delve startup.
## [0.8.0-alpha] 2015-09-05
### Added
- New command: 'frame'. Accepts a frame number and a command to execute in the context of that frame. (@aarzilli)
- New command: 'goroutine'. Accepts goroutine ID and optionally a command to execute within the context of that goroutine. (@aarzilli)
- New subcommand: 'exec'. Allows user to debug existing binary.
- Add config file and add config options for command aliases. (@tylerb)
### Changed
- Add Go 1.5 to travis list.
- Stop shortening file paths from API, shorten instead in terminal UI.
- Implemented several improvements for `next`ing through highly parallel programs.
- Visually align registers. (@paulsmith)
### Fixed
- Fixed output of 'goroutines' command.
- Stopped preserving temp breakpoints on restart.
- Added support for parsing multiple DWARF file tables. (@Omie)
## [0.7.0-alpha] 2015-08-14
### Added
- New command: 'list' (alias: 'ls'). Allows you to list the source code of either your current location, or a location that you describe via: file:line, line number (in current file), +/- offset or /regexp/. (@joeshaw)
- Added Travis-CI for continuous integration. Works for now, will eventually change.
- Ability to connect to headless server. When running Delve in headless mode (used previously only for editor integration), you now have the opportunity to connect to it from the command line with `dlv connect [addr]`. This will allow you to (insecurely) remotely debug an application. (@tylerb)
- Support for printing complex numeric types. (@ebfe)
### Changed
- Deprecate 'run' subcommand in favor of 'debug'. The 'run' subcommand now simply prints a warning, instructing the user to use the 'debug' command instead.
- All 'info' subcommands have been promoted to the top level. You can now simply run 'funcs', or 'sources' instead of 'info funcs', etc...
- Any command taking a location expression (i.e. break/trace/list) now support an updated linespec implementation. This allows you to describe the location you would like a breakpoint (etc..) set at in a more convienant way (@aarzilli).
### Fixed
- Improved support for CGO. (@aarzilli)
- Support for upcoming Go 1.5.
- Improve handling of soft signals on Darwin.
- EvalVariable evaluates package variables. (@aarzilli)
- Restart command now preserves breakpoints previously set.
- Track recurse level when eval'ing slices/arrays. (@aarzilli)
- Fix bad format string in cmd/dlv. (@moshee)
|
yigen520/delve
|
CHANGELOG.md
|
Markdown
|
mit
| 2,720 |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/runtime/runtime-utils.h"
#include "src/arguments.h"
#include "src/asmjs/asm-js.h"
#include "src/compiler-dispatcher/optimizing-compile-dispatcher.h"
#include "src/compiler.h"
#include "src/deoptimizer.h"
#include "src/frames-inl.h"
#include "src/full-codegen/full-codegen.h"
#include "src/isolate-inl.h"
#include "src/messages.h"
#include "src/v8threads.h"
#include "src/vm-state-inl.h"
namespace v8 {
namespace internal {
RUNTIME_FUNCTION(Runtime_CompileLazy) {
HandleScope scope(isolate);
DCHECK_EQ(1, args.length());
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
#ifdef DEBUG
if (FLAG_trace_lazy && !function->shared()->is_compiled()) {
PrintF("[unoptimized: ");
function->PrintName();
PrintF("]\n");
}
#endif
StackLimitCheck check(isolate);
if (check.JsHasOverflowed(1 * KB)) return isolate->StackOverflow();
if (!Compiler::Compile(function, Compiler::KEEP_EXCEPTION)) {
return isolate->heap()->exception();
}
DCHECK(function->is_compiled());
return function->code();
}
RUNTIME_FUNCTION(Runtime_CompileOptimized_Concurrent) {
HandleScope scope(isolate);
DCHECK_EQ(1, args.length());
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
StackLimitCheck check(isolate);
if (check.JsHasOverflowed(1 * KB)) return isolate->StackOverflow();
if (!Compiler::CompileOptimized(function, Compiler::CONCURRENT)) {
return isolate->heap()->exception();
}
DCHECK(function->is_compiled());
return function->code();
}
RUNTIME_FUNCTION(Runtime_CompileOptimized_NotConcurrent) {
HandleScope scope(isolate);
DCHECK_EQ(1, args.length());
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
StackLimitCheck check(isolate);
if (check.JsHasOverflowed(1 * KB)) return isolate->StackOverflow();
if (!Compiler::CompileOptimized(function, Compiler::NOT_CONCURRENT)) {
return isolate->heap()->exception();
}
DCHECK(function->is_compiled());
return function->code();
}
RUNTIME_FUNCTION(Runtime_EvictOptimizedCodeSlot) {
SealHandleScope scope(isolate);
DCHECK_EQ(1, args.length());
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
DCHECK(function->is_compiled());
function->feedback_vector()->EvictOptimizedCodeMarkedForDeoptimization(
function->shared(), "Runtime_EvictOptimizedCodeSlot");
return function->code();
}
RUNTIME_FUNCTION(Runtime_InstantiateAsmJs) {
HandleScope scope(isolate);
DCHECK_EQ(args.length(), 4);
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
Handle<JSReceiver> stdlib;
if (args[1]->IsJSReceiver()) {
stdlib = args.at<JSReceiver>(1);
}
Handle<JSObject> foreign;
if (args[2]->IsJSObject()) {
foreign = args.at<JSObject>(2);
}
Handle<JSArrayBuffer> memory;
if (args[3]->IsJSArrayBuffer()) {
memory = args.at<JSArrayBuffer>(3);
}
if (function->shared()->HasAsmWasmData()) {
Handle<SharedFunctionInfo> shared(function->shared());
Handle<FixedArray> data(shared->asm_wasm_data());
MaybeHandle<Object> result = AsmJs::InstantiateAsmWasm(
isolate, shared, data, stdlib, foreign, memory);
if (!result.is_null()) {
return *result.ToHandleChecked();
}
}
// Remove wasm data, mark as broken for asm->wasm,
// replace code with CompileLazy, and return a smi 0 to indicate failure.
if (function->shared()->HasAsmWasmData()) {
function->shared()->ClearAsmWasmData();
}
function->shared()->set_is_asm_wasm_broken(true);
DCHECK(function->code() ==
isolate->builtins()->builtin(Builtins::kInstantiateAsmJs));
function->ReplaceCode(isolate->builtins()->builtin(Builtins::kCompileLazy));
if (function->shared()->code() ==
isolate->builtins()->builtin(Builtins::kInstantiateAsmJs)) {
function->shared()->ReplaceCode(
isolate->builtins()->builtin(Builtins::kCompileLazy));
}
return Smi::kZero;
}
RUNTIME_FUNCTION(Runtime_NotifyStubFailure) {
HandleScope scope(isolate);
DCHECK_EQ(0, args.length());
Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate);
DCHECK(AllowHeapAllocation::IsAllowed());
delete deoptimizer;
return isolate->heap()->undefined_value();
}
class ActivationsFinder : public ThreadVisitor {
public:
Code* code_;
bool has_code_activations_;
explicit ActivationsFinder(Code* code)
: code_(code), has_code_activations_(false) {}
void VisitThread(Isolate* isolate, ThreadLocalTop* top) {
JavaScriptFrameIterator it(isolate, top);
VisitFrames(&it);
}
void VisitFrames(JavaScriptFrameIterator* it) {
for (; !it->done(); it->Advance()) {
JavaScriptFrame* frame = it->frame();
if (code_->contains(frame->pc())) has_code_activations_ = true;
}
}
};
RUNTIME_FUNCTION(Runtime_NotifyDeoptimized) {
HandleScope scope(isolate);
DCHECK_EQ(1, args.length());
CONVERT_SMI_ARG_CHECKED(type_arg, 0);
Deoptimizer::BailoutType type =
static_cast<Deoptimizer::BailoutType>(type_arg);
Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate);
DCHECK(AllowHeapAllocation::IsAllowed());
TimerEventScope<TimerEventDeoptimizeCode> timer(isolate);
TRACE_EVENT0("v8", "V8.DeoptimizeCode");
Handle<JSFunction> function = deoptimizer->function();
Handle<Code> optimized_code = deoptimizer->compiled_code();
DCHECK(optimized_code->kind() == Code::OPTIMIZED_FUNCTION);
DCHECK(type == deoptimizer->bailout_type());
DCHECK_NULL(isolate->context());
// TODO(turbofan): For Crankshaft we restore the context before objects are
// being materialized, because it never de-materializes the context but it
// requires a context to materialize arguments objects. This is specific to
// Crankshaft and can be removed once only TurboFan goes through here.
if (!optimized_code->is_turbofanned()) {
JavaScriptFrameIterator top_it(isolate);
JavaScriptFrame* top_frame = top_it.frame();
isolate->set_context(Context::cast(top_frame->context()));
} else {
// TODO(turbofan): We currently need the native context to materialize
// the arguments object, but only to get to its map.
isolate->set_context(function->native_context());
}
// Make sure to materialize objects before causing any allocation.
JavaScriptFrameIterator it(isolate);
deoptimizer->MaterializeHeapObjects(&it);
delete deoptimizer;
// Ensure the context register is updated for materialized objects.
if (optimized_code->is_turbofanned()) {
JavaScriptFrameIterator top_it(isolate);
JavaScriptFrame* top_frame = top_it.frame();
isolate->set_context(Context::cast(top_frame->context()));
}
if (type == Deoptimizer::LAZY) {
return isolate->heap()->undefined_value();
}
// Search for other activations of the same optimized code.
// At this point {it} is at the topmost frame of all the frames materialized
// by the deoptimizer. Note that this frame does not necessarily represent
// an activation of {function} because of potential inlined tail-calls.
ActivationsFinder activations_finder(*optimized_code);
activations_finder.VisitFrames(&it);
isolate->thread_manager()->IterateArchivedThreads(&activations_finder);
if (!activations_finder.has_code_activations_) {
Deoptimizer::UnlinkOptimizedCode(*optimized_code,
function->context()->native_context());
// Evict optimized code for this function from the cache so that it
// doesn't get used for new closures.
if (function->feedback_vector()->optimized_code() == *optimized_code) {
function->ClearOptimizedCodeSlot("notify deoptimized");
}
// Remove the code from the osr optimized code cache.
DeoptimizationInputData* deopt_data =
DeoptimizationInputData::cast(optimized_code->deoptimization_data());
if (deopt_data->OsrAstId()->value() == BailoutId::None().ToInt()) {
isolate->EvictOSROptimizedCode(*optimized_code, "notify deoptimized");
}
} else {
// TODO(titzer): we should probably do DeoptimizeCodeList(code)
// unconditionally if the code is not already marked for deoptimization.
// If there is an index by shared function info, all the better.
Deoptimizer::DeoptimizeFunction(*function);
}
return isolate->heap()->undefined_value();
}
static bool IsSuitableForOnStackReplacement(Isolate* isolate,
Handle<JSFunction> function) {
// Keep track of whether we've succeeded in optimizing.
if (function->shared()->optimization_disabled()) return false;
// If we are trying to do OSR when there are already optimized
// activations of the function, it means (a) the function is directly or
// indirectly recursive and (b) an optimized invocation has been
// deoptimized so that we are currently in an unoptimized activation.
// Check for optimized activations of this function.
for (JavaScriptFrameIterator it(isolate); !it.done(); it.Advance()) {
JavaScriptFrame* frame = it.frame();
if (frame->is_optimized() && frame->function() == *function) return false;
}
return true;
}
namespace {
BailoutId DetermineEntryAndDisarmOSRForBaseline(JavaScriptFrame* frame) {
Handle<Code> caller_code(frame->function()->shared()->code());
// Passing the PC in the JavaScript frame from the caller directly is
// not GC safe, so we walk the stack to get it.
if (!caller_code->contains(frame->pc())) {
// Code on the stack may not be the code object referenced by the shared
// function info. It may have been replaced to include deoptimization data.
caller_code = Handle<Code>(frame->LookupCode());
}
DCHECK_EQ(frame->LookupCode(), *caller_code);
DCHECK_EQ(Code::FUNCTION, caller_code->kind());
DCHECK(caller_code->contains(frame->pc()));
// Revert the patched back edge table, regardless of whether OSR succeeds.
BackEdgeTable::Revert(frame->isolate(), *caller_code);
// Return a BailoutId representing an AST id of the {IterationStatement}.
uint32_t pc_offset =
static_cast<uint32_t>(frame->pc() - caller_code->instruction_start());
return caller_code->TranslatePcOffsetToAstId(pc_offset);
}
BailoutId DetermineEntryAndDisarmOSRForInterpreter(JavaScriptFrame* frame) {
InterpretedFrame* iframe = reinterpret_cast<InterpretedFrame*>(frame);
// Note that the bytecode array active on the stack might be different from
// the one installed on the function (e.g. patched by debugger). This however
// is fine because we guarantee the layout to be in sync, hence any BailoutId
// representing the entry point will be valid for any copy of the bytecode.
Handle<BytecodeArray> bytecode(iframe->GetBytecodeArray());
DCHECK(frame->LookupCode()->is_interpreter_trampoline_builtin());
DCHECK(frame->function()->shared()->HasBytecodeArray());
DCHECK(frame->is_interpreted());
DCHECK(FLAG_ignition_osr);
// Reset the OSR loop nesting depth to disarm back edges.
bytecode->set_osr_loop_nesting_level(0);
// Return a BailoutId representing the bytecode offset of the back branch.
return BailoutId(iframe->GetBytecodeOffset());
}
} // namespace
RUNTIME_FUNCTION(Runtime_CompileForOnStackReplacement) {
HandleScope scope(isolate);
DCHECK_EQ(1, args.length());
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
// We're not prepared to handle a function with arguments object.
DCHECK(!function->shared()->uses_arguments());
// Only reachable when OST is enabled.
CHECK(FLAG_use_osr);
// Determine frame triggering OSR request.
JavaScriptFrameIterator it(isolate);
JavaScriptFrame* frame = it.frame();
DCHECK_EQ(frame->function(), *function);
// Determine the entry point for which this OSR request has been fired and
// also disarm all back edges in the calling code to stop new requests.
BailoutId ast_id = frame->is_interpreted()
? DetermineEntryAndDisarmOSRForInterpreter(frame)
: DetermineEntryAndDisarmOSRForBaseline(frame);
DCHECK(!ast_id.IsNone());
MaybeHandle<Code> maybe_result;
if (IsSuitableForOnStackReplacement(isolate, function)) {
if (FLAG_trace_osr) {
PrintF("[OSR - Compiling: ");
function->PrintName();
PrintF(" at AST id %d]\n", ast_id.ToInt());
}
maybe_result = Compiler::GetOptimizedCodeForOSR(function, ast_id, frame);
}
// Check whether we ended up with usable optimized code.
Handle<Code> result;
if (maybe_result.ToHandle(&result) &&
result->kind() == Code::OPTIMIZED_FUNCTION) {
DeoptimizationInputData* data =
DeoptimizationInputData::cast(result->deoptimization_data());
if (data->OsrPcOffset()->value() >= 0) {
DCHECK(BailoutId(data->OsrAstId()->value()) == ast_id);
if (FLAG_trace_osr) {
PrintF("[OSR - Entry at AST id %d, offset %d in optimized code]\n",
ast_id.ToInt(), data->OsrPcOffset()->value());
}
if (result->is_turbofanned()) {
// When we're waiting for concurrent optimization, set to compile on
// the next call - otherwise we'd run unoptimized once more
// and potentially compile for OSR another time as well.
if (function->IsMarkedForConcurrentOptimization()) {
if (FLAG_trace_osr) {
PrintF("[OSR - Re-marking ");
function->PrintName();
PrintF(" for non-concurrent optimization]\n");
}
function->ReplaceCode(
isolate->builtins()->builtin(Builtins::kCompileOptimized));
}
} else {
// Crankshafted OSR code can be installed into the function.
function->ReplaceCode(*result);
}
return *result;
}
}
// Failed.
if (FLAG_trace_osr) {
PrintF("[OSR - Failed: ");
function->PrintName();
PrintF(" at AST id %d]\n", ast_id.ToInt());
}
if (!function->IsOptimized()) {
function->ReplaceCode(function->shared()->code());
}
return NULL;
}
RUNTIME_FUNCTION(Runtime_TryInstallOptimizedCode) {
HandleScope scope(isolate);
DCHECK_EQ(1, args.length());
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
// First check if this is a real stack overflow.
StackLimitCheck check(isolate);
if (check.JsHasOverflowed()) {
SealHandleScope shs(isolate);
return isolate->StackOverflow();
}
isolate->optimizing_compile_dispatcher()->InstallOptimizedFunctions();
return (function->IsOptimized()) ? function->code()
: function->shared()->code();
}
bool CodeGenerationFromStringsAllowed(Isolate* isolate,
Handle<Context> context) {
DCHECK(context->allow_code_gen_from_strings()->IsFalse(isolate));
// Check with callback if set.
AllowCodeGenerationFromStringsCallback callback =
isolate->allow_code_gen_callback();
if (callback == NULL) {
// No callback set and code generation disallowed.
return false;
} else {
// Callback set. Let it decide if code generation is allowed.
VMState<EXTERNAL> state(isolate);
return callback(v8::Utils::ToLocal(context));
}
}
static Object* CompileGlobalEval(Isolate* isolate, Handle<String> source,
Handle<SharedFunctionInfo> outer_info,
LanguageMode language_mode,
int eval_scope_position, int eval_position) {
Handle<Context> context = Handle<Context>(isolate->context());
Handle<Context> native_context = Handle<Context>(context->native_context());
// Check if native context allows code generation from
// strings. Throw an exception if it doesn't.
if (native_context->allow_code_gen_from_strings()->IsFalse(isolate) &&
!CodeGenerationFromStringsAllowed(isolate, native_context)) {
Handle<Object> error_message =
native_context->ErrorMessageForCodeGenerationFromStrings();
Handle<Object> error;
MaybeHandle<Object> maybe_error = isolate->factory()->NewEvalError(
MessageTemplate::kCodeGenFromStrings, error_message);
if (maybe_error.ToHandle(&error)) isolate->Throw(*error);
return isolate->heap()->exception();
}
// Deal with a normal eval call with a string argument. Compile it
// and return the compiled function bound in the local context.
static const ParseRestriction restriction = NO_PARSE_RESTRICTION;
Handle<JSFunction> compiled;
ASSIGN_RETURN_ON_EXCEPTION_VALUE(
isolate, compiled,
Compiler::GetFunctionFromEval(source, outer_info, context, language_mode,
restriction, kNoSourcePosition,
eval_scope_position, eval_position),
isolate->heap()->exception());
return *compiled;
}
RUNTIME_FUNCTION(Runtime_ResolvePossiblyDirectEval) {
HandleScope scope(isolate);
DCHECK_EQ(6, args.length());
Handle<Object> callee = args.at(0);
// If "eval" didn't refer to the original GlobalEval, it's not a
// direct call to eval.
// (And even if it is, but the first argument isn't a string, just let
// execution default to an indirect call to eval, which will also return
// the first argument without doing anything).
if (*callee != isolate->native_context()->global_eval_fun() ||
!args[1]->IsString()) {
return *callee;
}
DCHECK(args[3]->IsSmi());
DCHECK(is_valid_language_mode(args.smi_at(3)));
LanguageMode language_mode = static_cast<LanguageMode>(args.smi_at(3));
DCHECK(args[4]->IsSmi());
Handle<SharedFunctionInfo> outer_info(args.at<JSFunction>(2)->shared(),
isolate);
return CompileGlobalEval(isolate, args.at<String>(1), outer_info,
language_mode, args.smi_at(4), args.smi_at(5));
}
} // namespace internal
} // namespace v8
|
hoho/dosido
|
nodejs/deps/v8/src/runtime/runtime-compiler.cc
|
C++
|
mit
| 17,834 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.foo7 = exports.foo6 = exports.foo5 = exports.foo4 = exports.foo3 = exports.foo2 = exports.foo = exports.bar = void 0;
exports.foo8 = foo8;
exports.foo9 = void 0;
var foo = 1;
exports.foo = foo;
var foo2 = 1,
bar = 2;
exports.bar = bar;
exports.foo2 = foo2;
var foo3 = function () {};
exports.foo3 = foo3;
var foo4;
exports.foo4 = foo4;
let foo5 = 2;
exports.foo5 = foo5;
let foo6;
exports.foo6 = foo6;
const foo7 = 3;
exports.foo7 = foo7;
function foo8() {}
class foo9 {}
exports.foo9 = foo9;
|
babel/babel
|
packages/babel-plugin-transform-modules-commonjs/test/fixtures/interop/exports-variable/output.js
|
JavaScript
|
mit
| 590 |
require 'test_helper'
module Regaliator
module V31
class ClientTest < Minitest::Test
def setup
@config = Configuration.new
@subject = Client.new(@config)
end
def test_versioned_client_inherits_from_client
assert_operator V31::Client, :<, Regaliator::Client
end
%i(account bill biller rate transaction).each do |endpoint|
define_method("test_#{endpoint}_method_returns_#{endpoint}_instance") do
klass = "::Regaliator::V31::#{endpoint.capitalize}"
assert_instance_of Kernel.const_get(klass), @subject.send(endpoint)
end
end
end
end
end
|
regalii/regalii-gem
|
test/regaliator/v31/client_test.rb
|
Ruby
|
mit
| 646 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package models;
/**
*
* @author TOSHIBA
*/
public class Adresse {
private String wilaya ;
private String dayra ;
public Adresse(String wilaya, String dayra) {
this.wilaya = wilaya;
this.dayra = dayra;
}
public Adresse() {
}
public String getWilaya() {
return wilaya;
}
public String getDayra() {
return dayra;
}
public void setWilaya(String wilaya) {
this.wilaya = wilaya;
}
public void setDayra(String dayra) {
this.dayra = dayra;
}
@Override
public String toString(){
return "dayra: "+ getDayra()+ " wilaya : "+ getWilaya();
}
}
|
Fcmam5/BloodBank_project
|
BloodBank_JAVA/src/models/Adresse.java
|
Java
|
mit
| 876 |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2015-2017 The DMD Diamond developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "masternode.h"
#include "addrman.h"
#include "masternodeman.h"
#include "mixTX.h"
#include "sync.h"
#include "util.h"
#include <boost/lexical_cast.hpp>
// keep track of the scanning errors I've seen
map<uint256, int> mapSeenMasternodeScanningErrors;
// cache block hashes as we calculate them
std::map<int64_t, uint256> mapCacheBlockHashes;
//Get the last hash that matches the modulus given. Processed in reverse order
bool GetBlockHash(uint256& hash, int nBlockHeight)
{
if (chainActive.Tip() == NULL) return false;
if (nBlockHeight == 0)
nBlockHeight = chainActive.Tip()->nHeight;
if (mapCacheBlockHashes.count(nBlockHeight)) {
hash = mapCacheBlockHashes[nBlockHeight];
return true;
}
const CBlockIndex* BlockLastSolved = chainActive.Tip();
const CBlockIndex* BlockReading = chainActive.Tip();
if (BlockLastSolved == NULL || BlockLastSolved->nHeight == 0 || chainActive.Tip()->nHeight + 1 < nBlockHeight) return false;
int nBlocksAgo = 0;
if (nBlockHeight > 0) nBlocksAgo = (chainActive.Tip()->nHeight + 1) - nBlockHeight;
assert(nBlocksAgo >= 0);
int n = 0;
for (unsigned int i = 1; BlockReading && BlockReading->nHeight > 0; i++) {
if (n >= nBlocksAgo) {
hash = BlockReading->GetBlockHash();
mapCacheBlockHashes[nBlockHeight] = hash;
return true;
}
n++;
if (BlockReading->pprev == NULL) {
assert(BlockReading);
break;
}
BlockReading = BlockReading->pprev;
}
return false;
}
CMasternode::CMasternode()
{
LOCK(cs);
vin = CTxIn();
addr = CService();
pubKeyCollateralAddress = CPubKey();
pubKeyMasternode = CPubKey();
sig = std::vector<unsigned char>();
activeState = MASTERNODE_ENABLED;
sigTime = GetAdjustedTime();
lastPing = CMasternodePing();
cacheInputAge = 0;
cacheInputAgeBlock = 0;
unitTest = false;
allowFreeTx = true;
nActiveState = MASTERNODE_ENABLED,
protocolVersion = PROTOCOL_VERSION;
nLastDsq = 0;
nScanningErrorCount = 0;
nLastScanningErrorBlockHeight = 0;
lastTimeChecked = 0;
nLastDsee = 0; // temporary, do not save. Remove after migration to v12
nLastDseep = 0; // temporary, do not save. Remove after migration to v12
}
CMasternode::CMasternode(const CMasternode& other)
{
LOCK(cs);
vin = other.vin;
addr = other.addr;
pubKeyCollateralAddress = other.pubKeyCollateralAddress;
pubKeyMasternode = other.pubKeyMasternode;
sig = other.sig;
activeState = other.activeState;
sigTime = other.sigTime;
lastPing = other.lastPing;
cacheInputAge = other.cacheInputAge;
cacheInputAgeBlock = other.cacheInputAgeBlock;
unitTest = other.unitTest;
allowFreeTx = other.allowFreeTx;
nActiveState = MASTERNODE_ENABLED,
protocolVersion = other.protocolVersion;
nLastDsq = other.nLastDsq;
nScanningErrorCount = other.nScanningErrorCount;
nLastScanningErrorBlockHeight = other.nLastScanningErrorBlockHeight;
lastTimeChecked = 0;
nLastDsee = other.nLastDsee; // temporary, do not save. Remove after migration to v12
nLastDseep = other.nLastDseep; // temporary, do not save. Remove after migration to v12
}
CMasternode::CMasternode(const CMasternodeBroadcast& mnb)
{
LOCK(cs);
vin = mnb.vin;
addr = mnb.addr;
pubKeyCollateralAddress = mnb.pubKeyCollateralAddress;
pubKeyMasternode = mnb.pubKeyMasternode;
sig = mnb.sig;
activeState = MASTERNODE_ENABLED;
sigTime = mnb.sigTime;
lastPing = mnb.lastPing;
cacheInputAge = 0;
cacheInputAgeBlock = 0;
unitTest = false;
allowFreeTx = true;
nActiveState = MASTERNODE_ENABLED,
protocolVersion = mnb.protocolVersion;
nLastDsq = mnb.nLastDsq;
nScanningErrorCount = 0;
nLastScanningErrorBlockHeight = 0;
lastTimeChecked = 0;
nLastDsee = 0; // temporary, do not save. Remove after migration to v12
nLastDseep = 0; // temporary, do not save. Remove after migration to v12
}
//
// When a new masternode broadcast is sent, update our information
//
bool CMasternode::UpdateFromNewBroadcast(CMasternodeBroadcast& mnb)
{
if (mnb.sigTime > sigTime) {
pubKeyMasternode = mnb.pubKeyMasternode;
pubKeyCollateralAddress = mnb.pubKeyCollateralAddress;
sigTime = mnb.sigTime;
sig = mnb.sig;
protocolVersion = mnb.protocolVersion;
addr = mnb.addr;
lastTimeChecked = 0;
int nDoS = 0;
if (mnb.lastPing == CMasternodePing() || (mnb.lastPing != CMasternodePing() && mnb.lastPing.CheckAndUpdate(nDoS, false))) {
lastPing = mnb.lastPing;
mnodeman.mapSeenMasternodePing.insert(make_pair(lastPing.GetHash(), lastPing));
}
return true;
}
return false;
}
//
// Deterministically calculate a given "score" for a Masternode depending on how close it's hash is to
// the proof of work for that block. The further away they are the better, the furthest will win the election
// and get paid this block
//
uint256 CMasternode::CalculateScore(int mod, int64_t nBlockHeight)
{
if (chainActive.Tip() == NULL) return 0;
uint256 hash = 0;
uint256 aux = vin.prevout.hash + vin.prevout.n;
if (!GetBlockHash(hash, nBlockHeight)) {
LogPrintf("CalculateScore ERROR - nHeight %d - Returned 0\n", nBlockHeight);
return 0;
}
CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION);
ss << hash;
uint256 hash2 = ss.GetHash();
CHashWriter ss2(SER_GETHASH, PROTOCOL_VERSION);
ss2 << hash;
ss2 << aux;
uint256 hash3 = ss2.GetHash();
uint256 r = (hash3 > hash2 ? hash3 - hash2 : hash2 - hash3);
return r;
}
void CMasternode::Check(bool forceCheck)
{
if (ShutdownRequested()) return;
if (!forceCheck && (GetTime() - lastTimeChecked < MASTERNODE_CHECK_SECONDS)) return;
lastTimeChecked = GetTime();
//once spent, stop doing the checks
if (activeState == MASTERNODE_VIN_SPENT) return;
if (!IsPingedWithin(MASTERNODE_REMOVAL_SECONDS)) {
activeState = MASTERNODE_REMOVE;
return;
}
if (!IsPingedWithin(MASTERNODE_EXPIRATION_SECONDS)) {
activeState = MASTERNODE_EXPIRED;
return;
}
if (!unitTest) {
CValidationState state;
CMutableTransaction tx = CMutableTransaction();
CTxOut vout = CTxOut(9999.99 * COIN, miXtxPool.collateralPubKey);
tx.vin.push_back(vin);
tx.vout.push_back(vout);
{
TRY_LOCK(cs_main, lockMain);
if (!lockMain) return;
if (!AcceptableInputs(mempool, state, CTransaction(tx), false, NULL)) {
activeState = MASTERNODE_VIN_SPENT;
return;
}
}
}
activeState = MASTERNODE_ENABLED; // OK
}
int64_t CMasternode::SecondsSincePayment()
{
CScript pubkeyScript;
pubkeyScript = GetScriptForDestination(pubKeyCollateralAddress.GetID());
int64_t sec = (GetAdjustedTime() - GetLastPaid());
int64_t month = 60 * 60 * 24 * 30;
if (sec < month) return sec; //if it's less than 30 days, give seconds
CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION);
ss << vin;
ss << sigTime;
uint256 hash = ss.GetHash();
// return some deterministic value for unknown/unpaid but force it to be more than 30 days old
return month + hash.GetCompact(false);
}
int64_t CMasternode::GetLastPaid()
{
CBlockIndex* pindexPrev = chainActive.Tip();
if (pindexPrev == NULL) return false;
CScript mnpayee;
mnpayee = GetScriptForDestination(pubKeyCollateralAddress.GetID());
CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION);
ss << vin;
ss << sigTime;
uint256 hash = ss.GetHash();
// use a deterministic offset to break a tie -- 2.5 minutes
int64_t nOffset = hash.GetCompact(false) % 150;
if (chainActive.Tip() == NULL) return false;
const CBlockIndex* BlockReading = chainActive.Tip();
int nMnCount = mnodeman.CountEnabled() * 1.25;
int n = 0;
for (unsigned int i = 1; BlockReading && BlockReading->nHeight > 0; i++) {
if (n >= nMnCount) {
return 0;
}
n++;
if (masternodePayments.mapMasternodeBlocks.count(BlockReading->nHeight)) {
/*
Search for this payee, with at least 2 votes. This will aid in consensus allowing the network
to converge on the same payees quickly, then keep the same schedule.
*/
if (masternodePayments.mapMasternodeBlocks[BlockReading->nHeight].HasPayeeWithVotes(mnpayee, 2)) {
return BlockReading->nTime + nOffset;
}
}
if (BlockReading->pprev == NULL) {
assert(BlockReading);
break;
}
BlockReading = BlockReading->pprev;
}
return 0;
}
std::string CMasternode::GetStatus()
{
switch (nActiveState) {
case CMasternode::MASTERNODE_PRE_ENABLED:
return "PRE_ENABLED";
case CMasternode::MASTERNODE_ENABLED:
return "ENABLED";
case CMasternode::MASTERNODE_EXPIRED:
return "EXPIRED";
case CMasternode::MASTERNODE_OUTPOINT_SPENT:
return "OUTPOINT_SPENT";
case CMasternode::MASTERNODE_REMOVE:
return "REMOVE";
case CMasternode::MASTERNODE_WATCHDOG_EXPIRED:
return "WATCHDOG_EXPIRED";
case CMasternode::MASTERNODE_POSE_BAN:
return "POSE_BAN";
default:
return "UNKNOWN";
}
}
bool CMasternode::IsValidNetAddr()
{
// TODO: regtest is fine with any addresses for now,
// should probably be a bit smarter if one day we start to implement tests for this
return Params().NetworkID() == CBaseChainParams::REGTEST ||
(IsReachable(addr) && addr.IsRoutable());
}
CMasternodeBroadcast::CMasternodeBroadcast()
{
vin = CTxIn();
addr = CService();
pubKeyCollateralAddress = CPubKey();
pubKeyMasternode1 = CPubKey();
sig = std::vector<unsigned char>();
activeState = MASTERNODE_ENABLED;
sigTime = GetAdjustedTime();
lastPing = CMasternodePing();
cacheInputAge = 0;
cacheInputAgeBlock = 0;
unitTest = false;
allowFreeTx = true;
protocolVersion = PROTOCOL_VERSION;
nLastDsq = 0;
nScanningErrorCount = 0;
nLastScanningErrorBlockHeight = 0;
}
CMasternodeBroadcast::CMasternodeBroadcast(CService newAddr, CTxIn newVin, CPubKey pubKeyCollateralAddressNew, CPubKey pubKeyMasternodeNew, int protocolVersionIn)
{
vin = newVin;
addr = newAddr;
pubKeyCollateralAddress = pubKeyCollateralAddressNew;
pubKeyMasternode = pubKeyMasternodeNew;
sig = std::vector<unsigned char>();
activeState = MASTERNODE_ENABLED;
sigTime = GetAdjustedTime();
lastPing = CMasternodePing();
cacheInputAge = 0;
cacheInputAgeBlock = 0;
unitTest = false;
allowFreeTx = true;
protocolVersion = protocolVersionIn;
nLastDsq = 0;
nScanningErrorCount = 0;
nLastScanningErrorBlockHeight = 0;
}
CMasternodeBroadcast::CMasternodeBroadcast(const CMasternode& mn)
{
vin = mn.vin;
addr = mn.addr;
pubKeyCollateralAddress = mn.pubKeyCollateralAddress;
pubKeyMasternode = mn.pubKeyMasternode;
sig = mn.sig;
activeState = mn.activeState;
sigTime = mn.sigTime;
lastPing = mn.lastPing;
cacheInputAge = mn.cacheInputAge;
cacheInputAgeBlock = mn.cacheInputAgeBlock;
unitTest = mn.unitTest;
allowFreeTx = mn.allowFreeTx;
protocolVersion = mn.protocolVersion;
nLastDsq = mn.nLastDsq;
nScanningErrorCount = mn.nScanningErrorCount;
nLastScanningErrorBlockHeight = mn.nLastScanningErrorBlockHeight;
}
bool CMasternodeBroadcast::Create(std::string strService, std::string strKeyMasternode, std::string strTxHash, std::string strOutputIndex, std::string& strErrorRet, CMasternodeBroadcast& mnbRet, bool fOffline)
{
CTxIn txin;
CPubKey pubKeyCollateralAddressNew;
CKey keyCollateralAddressNew;
CPubKey pubKeyMasternodeNew;
CKey keyMasternodeNew;
//need correct blocks to send ping
if (!fOffline && !masternodeSync.IsBlockchainSynced()) {
strErrorRet = "Sync in progress. Must wait until sync is complete to start Masternode";
LogPrintf("CMasternodeBroadcast::Create -- %s\n", strErrorRet);
return false;
}
if (!miXtxSigner.GetKeysFromSecret(strKeyMasternode, keyMasternodeNew, pubKeyMasternodeNew)) {
strErrorRet = strprintf("Invalid masternode key %s", strKeyMasternode);
LogPrintf("CMasternodeBroadcast::Create -- %s\n", strErrorRet);
return false;
}
if (!pwalletMain->GetMasternodeVinAndKeys(txin, pubKeyCollateralAddressNew, keyCollateralAddressNew, strTxHash, strOutputIndex)) {
strErrorRet = strprintf("Could not allocate txin %s:%s for masternode %s", strTxHash, strOutputIndex, strService);
LogPrintf("CMasternodeBroadcast::Create -- %s\n", strErrorRet);
return false;
}
CService service = CService(strService);
int mainnetDefaultPort = Params(CBaseChainParams::MAIN).GetDefaultPort();
if (Params().NetworkID() == CBaseChainParams::MAIN) {
if (service.GetPort() != mainnetDefaultPort) {
strErrorRet = strprintf("Invalid port %u for masternode %s, only %d is supported on mainnet.", service.GetPort(), strService, mainnetDefaultPort);
LogPrintf("CMasternodeBroadcast::Create -- %s\n", strErrorRet);
return false;
}
} else if (service.GetPort() == mainnetDefaultPort) {
strErrorRet = strprintf("Invalid port %u for masternode %s, %d is the only supported on mainnet.", service.GetPort(), strService, mainnetDefaultPort);
LogPrintf("CMasternodeBroadcast::Create -- %s\n", strErrorRet);
return false;
}
return Create(txin, CService(strService), keyCollateralAddressNew, pubKeyCollateralAddressNew, keyMasternodeNew, pubKeyMasternodeNew, strErrorRet, mnbRet);
}
bool CMasternodeBroadcast::Create(CTxIn txin, CService service, CKey keyCollateralAddressNew, CPubKey pubKeyCollateralAddressNew, CKey keyMasternodeNew, CPubKey pubKeyMasternodeNew, std::string& strErrorRet, CMasternodeBroadcast& mnbRet)
{
// wait for reindex and/or import to finish
if (fImporting || fReindex) return false;
LogPrint("masternode", "CMasternodeBroadcast::Create -- pubKeyCollateralAddressNew = %s, pubKeyMasternodeNew.GetID() = %s\n",
CBitcoinAddress(pubKeyCollateralAddressNew.GetID()).ToString(),
pubKeyMasternodeNew.GetID().ToString());
CMasternodePing mnp(txin);
if (!mnp.Sign(keyMasternodeNew, pubKeyMasternodeNew)) {
strErrorRet = strprintf("Failed to sign ping, masternode=%s", txin.prevout.ToStringShort());
LogPrintf("CMasternodeBroadcast::Create -- %s\n", strErrorRet);
mnbRet = CMasternodeBroadcast();
return false;
}
mnbRet = CMasternodeBroadcast(service, txin, pubKeyCollateralAddressNew, pubKeyMasternodeNew, PROTOCOL_VERSION);
if (!mnbRet.IsValidNetAddr()) {
strErrorRet = strprintf("Invalid IP address, masternode=%s", txin.prevout.ToStringShort());
LogPrintf("CMasternodeBroadcast::Create -- %s\n", strErrorRet);
mnbRet = CMasternodeBroadcast();
return false;
}
mnbRet.lastPing = mnp;
if (!mnbRet.Sign(keyCollateralAddressNew)) {
strErrorRet = strprintf("Failed to sign broadcast, masternode=%s", txin.prevout.ToStringShort());
LogPrintf("CMasternodeBroadcast::Create -- %s\n", strErrorRet);
mnbRet = CMasternodeBroadcast();
return false;
}
return true;
}
bool CMasternodeBroadcast::CheckAndUpdate(int& nDos)
{
// make sure signature isn't in the future (past is OK)
if (sigTime > GetAdjustedTime() + 60 * 60) {
LogPrintf("mnb - Signature rejected, too far into the future %s\n", vin.ToString());
nDos = 1;
return false;
}
std::string vchPubKey(pubKeyCollateralAddress.begin(), pubKeyCollateralAddress.end());
std::string vchPubKey2(pubKeyMasternode.begin(), pubKeyMasternode.end());
std::string strMessage = addr.ToString() + boost::lexical_cast<std::string>(sigTime) + vchPubKey + vchPubKey2 + boost::lexical_cast<std::string>(protocolVersion);
if (protocolVersion < masternodePayments.GetMinMasternodePaymentsProto()) {
LogPrintf("mnb - ignoring outdated Masternode %s protocol version %d\n", vin.ToString(), protocolVersion);
return false;
}
CScript pubkeyScript;
pubkeyScript = GetScriptForDestination(pubKeyCollateralAddress.GetID());
if (pubkeyScript.size() != 25) {
LogPrintf("mnb - pubkey the wrong size\n");
nDos = 100;
return false;
}
CScript pubkeyScript2;
pubkeyScript2 = GetScriptForDestination(pubKeyMasternode.GetID());
if (pubkeyScript2.size() != 25) {
LogPrintf("mnb - pubkey2 the wrong size\n");
nDos = 100;
return false;
}
if (!vin.scriptSig.empty()) {
LogPrintf("mnb - Ignore Not Empty ScriptSig %s\n", vin.ToString());
return false;
}
std::string errorMessage = "";
if (!miXtxSigner.VerifyMessage(pubKeyCollateralAddress, sig, strMessage, errorMessage)) {
LogPrintf("mnb - Got bad Masternode address signature\n");
nDos = 100;
return false;
}
if (Params().NetworkID() == CBaseChainParams::MAIN) {
if (addr.GetPort() != 17771) return false;
} else if (addr.GetPort() == 17771)
return false;
//search existing Masternode list, this is where we update existing Masternodes with new mnb broadcasts
CMasternode* pmn = mnodeman.Find(vin);
// no such masternode, nothing to update
if (pmn == NULL)
return true;
else {
// this broadcast older than we have, it's bad.
if (pmn->sigTime > sigTime) {
LogPrintf("mnb - Bad sigTime %d for Masternode %20s %105s (existing broadcast is at %d)\n",
sigTime, addr.ToString(), vin.ToString(), pmn->sigTime);
return false;
}
// masternode is not enabled yet/already, nothing to update
if (!pmn->IsEnabled()) return true;
}
// mn.pubkey = pubkey, IsVinAssociatedWithPubkey is validated once below,
// after that they just need to match
if (pmn->pubKeyCollateralAddress == pubKeyCollateralAddress && !pmn->IsBroadcastedWithin(MASTERNODE_MIN_MNB_SECONDS)) {
//take the newest entry
LogPrintf("mnb - Got updated entry for %s\n", addr.ToString());
if (pmn->UpdateFromNewBroadcast((*this))) {
pmn->Check();
if (pmn->IsEnabled()) Relay();
}
masternodeSync.AddedMasternodeList(GetHash());
}
return true;
}
bool CMasternodeBroadcast::CheckInputsAndAdd(int& nDoS)
{
// we are a masternode with the same vin (i.e. already activated) and this mnb is ours (matches our Masternode privkey)
// so nothing to do here for us
if (fMasterNode && vin.prevout == activeMasternode.vin.prevout && pubKeyMasternode == activeMasternode.pubKeyMasternode)
return true;
// search existing Masternode list
CMasternode* pmn = mnodeman.Find(vin);
if (pmn != NULL) {
// nothing to do here if we already know about this masternode and it's enabled
if (pmn->IsEnabled()) return true;
// if it's not enabled, remove old MN first and continue
else
mnodeman.Remove(pmn->vin);
}
CValidationState state;
CMutableTransaction tx = CMutableTransaction();
CTxOut vout = CTxOut(9999.99 * COIN, miXtxPool.collateralPubKey);
tx.vin.push_back(vin);
tx.vout.push_back(vout);
{
TRY_LOCK(cs_main, lockMain);
if (!lockMain) {
// not mnb fault, let it to be checked again later
mnodeman.mapSeenMasternodeBroadcast.erase(GetHash());
masternodeSync.mapSeenSyncMNB.erase(GetHash());
return false;
}
if (!AcceptableInputs(mempool, state, CTransaction(tx), false, NULL)) {
//set nDos
state.IsInvalid(nDoS);
return false;
}
}
LogPrint("masternode", "mnb - Accepted Masternode entry\n");
if (GetInputAge(vin) < MASTERNODE_MIN_CONFIRMATIONS) {
LogPrintf("mnb - Input must have at least %d confirmations\n", MASTERNODE_MIN_CONFIRMATIONS);
// maybe we miss few blocks, let this mnb to be checked again later
mnodeman.mapSeenMasternodeBroadcast.erase(GetHash());
masternodeSync.mapSeenSyncMNB.erase(GetHash());
return false;
}
// verify that sig time is legit in past
// should be at least not earlier than block when 1000 DMD tx got MASTERNODE_MIN_CONFIRMATIONS
uint256 hashBlock = 0;
CTransaction tx2;
GetTransaction(vin.prevout.hash, tx2, hashBlock, true);
BlockMap::iterator mi = mapBlockIndex.find(hashBlock);
if (mi != mapBlockIndex.end() && (*mi).second) {
CBlockIndex* pMNIndex = (*mi).second; // block for 1000 DMD tx -> 1 confirmation
CBlockIndex* pConfIndex = chainActive[pMNIndex->nHeight + MASTERNODE_MIN_CONFIRMATIONS - 1]; // block where tx got MASTERNODE_MIN_CONFIRMATIONS
if (pConfIndex->GetBlockTime() > sigTime) {
LogPrintf("mnb - Bad sigTime %d for Masternode %20s %105s (%i conf block is at %d)\n",
sigTime, addr.ToString(), vin.ToString(), MASTERNODE_MIN_CONFIRMATIONS, pConfIndex->GetBlockTime());
return false;
}
}
LogPrintf("mnb - Got NEW Masternode entry - %s - %s - %s - %lli \n", GetHash().ToString(), addr.ToString(), vin.ToString(), sigTime);
CMasternode mn(*this);
mnodeman.Add(mn);
// if it matches our Masternode privkey, then we've been remotely activated
if (pubKeyMasternode == activeMasternode.pubKeyMasternode && protocolVersion == PROTOCOL_VERSION) {
activeMasternode.EnableHotColdMasterNode(vin, addr);
}
bool isLocal = addr.IsRFC1918() || addr.IsLocal();
if (Params().NetworkID() == CBaseChainParams::REGTEST) isLocal = false;
if (!isLocal) Relay();
return true;
}
void CMasternodeBroadcast::Relay()
{
CInv inv(MSG_MASTERNODE_ANNOUNCE, GetHash());
RelayInv(inv);
}
bool CMasternodeBroadcast::Sign(CKey& keyCollateralAddress)
{
std::string errorMessage;
std::string vchPubKey(pubKeyCollateralAddress.begin(), pubKeyCollateralAddress.end());
std::string vchPubKey2(pubKeyMasternode.begin(), pubKeyMasternode.end());
sigTime = GetAdjustedTime();
std::string strMessage = addr.ToString() + boost::lexical_cast<std::string>(sigTime) + vchPubKey + vchPubKey2 + boost::lexical_cast<std::string>(protocolVersion);
if (!miXtxSigner.SignMessage(strMessage, errorMessage, sig, keyCollateralAddress)) {
LogPrintf("CMasternodeBroadcast::Sign() - Error: %s\n", errorMessage);
return false;
}
if (!miXtxSigner.VerifyMessage(pubKeyCollateralAddress, sig, strMessage, errorMessage)) {
LogPrintf("CMasternodeBroadcast::Sign() - Error: %s\n", errorMessage);
return false;
}
return true;
}
CMasternodePing::CMasternodePing()
{
vin = CTxIn();
blockHash = uint256(0);
sigTime = 0;
vchSig = std::vector<unsigned char>();
}
CMasternodePing::CMasternodePing(CTxIn& newVin)
{
vin = newVin;
blockHash = chainActive[chainActive.Height() - 12]->GetBlockHash();
sigTime = GetAdjustedTime();
vchSig = std::vector<unsigned char>();
}
bool CMasternodePing::Sign(CKey& keyMasternode, CPubKey& pubKeyMasternode)
{
std::string errorMessage;
std::string strMasterNodeSignMessage;
sigTime = GetAdjustedTime();
std::string strMessage = vin.ToString() + blockHash.ToString() + boost::lexical_cast<std::string>(sigTime);
if (!miXtxSigner.SignMessage(strMessage, errorMessage, vchSig, keyMasternode)) {
LogPrintf("CMasternodePing::Sign() - Error: %s\n", errorMessage);
return false;
}
if (!miXtxSigner.VerifyMessage(pubKeyMasternode, vchSig, strMessage, errorMessage)) {
LogPrintf("CMasternodePing::Sign() - Error: %s\n", errorMessage);
return false;
}
return true;
}
bool CMasternodePing::CheckAndUpdate(int& nDos, bool fRequireEnabled)
{
if (sigTime > GetAdjustedTime() + 60 * 60) {
LogPrintf("CMasternodePing::CheckAndUpdate - Signature rejected, too far into the future %s\n", vin.ToString());
nDos = 1;
return false;
}
if (sigTime <= GetAdjustedTime() - 60 * 60) {
LogPrintf("CMasternodePing::CheckAndUpdate - Signature rejected, too far into the past %s - %d %d \n", vin.ToString(), sigTime, GetAdjustedTime());
nDos = 1;
return false;
}
LogPrint("masternode", "CMasternodePing::CheckAndUpdate - New Ping - %s - %s - %lli\n", GetHash().ToString(), blockHash.ToString(), sigTime);
// see if we have this Masternode
CMasternode* pmn = mnodeman.Find(vin);
if (pmn != NULL && pmn->protocolVersion >= masternodePayments.GetMinMasternodePaymentsProto()) {
if (fRequireEnabled && !pmn->IsEnabled()) return false;
// LogPrintf("mnping - Found corresponding mn for vin: %s\n", vin.ToString());
// update only if there is no known ping for this masternode or
// last ping was more then MASTERNODE_MIN_MNP_SECONDS-60 ago comparing to this one
if (!pmn->IsPingedWithin(MASTERNODE_MIN_MNP_SECONDS - 60, sigTime)) {
std::string strMessage = vin.ToString() + blockHash.ToString() + boost::lexical_cast<std::string>(sigTime);
std::string errorMessage = "";
if (!miXtxSigner.VerifyMessage(pmn->pubKeyMasternode, vchSig, strMessage, errorMessage)) {
LogPrintf("CMasternodePing::CheckAndUpdate - Got bad Masternode address signature %s\n", vin.ToString());
nDos = 33;
return false;
}
BlockMap::iterator mi = mapBlockIndex.find(blockHash);
if (mi != mapBlockIndex.end() && (*mi).second) {
if ((*mi).second->nHeight < chainActive.Height() - 24) {
LogPrintf("CMasternodePing::CheckAndUpdate - Masternode %s block hash %s is too old\n", vin.ToString(), blockHash.ToString());
// Do nothing here (no Masternode update, no mnping relay)
// Let this node to be visible but fail to accept mnping
return false;
}
} else {
if (fDebug) LogPrintf("CMasternodePing::CheckAndUpdate - Masternode %s block hash %s is unknown\n", vin.ToString(), blockHash.ToString());
// maybe we stuck so we shouldn't ban this node, just fail to accept it
// TODO: or should we also request this block?
return false;
}
pmn->lastPing = *this;
//mnodeman.mapSeenMasternodeBroadcast.lastPing is probably outdated, so we'll update it
CMasternodeBroadcast mnb(*pmn);
uint256 hash = mnb.GetHash();
if (mnodeman.mapSeenMasternodeBroadcast.count(hash)) {
mnodeman.mapSeenMasternodeBroadcast[hash].lastPing = *this;
}
pmn->Check(true);
if (!pmn->IsEnabled()) return false;
LogPrint("masternode", "CMasternodePing::CheckAndUpdate - Masternode ping accepted, vin: %s\n", vin.ToString());
Relay();
return true;
}
LogPrint("masternode", "CMasternodePing::CheckAndUpdate - Masternode ping arrived too early, vin: %s\n", vin.ToString());
//nDos = 1; //disable, this is happening frequently and causing banned peers
return false;
}
LogPrint("masternode", "CMasternodePing::CheckAndUpdate - Couldn't find compatible Masternode entry, vin: %s\n", vin.ToString());
return false;
}
void CMasternodePing::Relay()
{
CInv inv(MSG_MASTERNODE_PING, GetHash());
RelayInv(inv);
}
|
LIMXTEC/DMDv3
|
src/masternode.cpp
|
C++
|
mit
| 28,400 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.