Cleaned up DMA port handling and minor tweaks

This commit is contained in:
Jeff Parsons 2015-04-13 14:02:02 -07:00 committed by jeffpar
commit 158cc65da3
16 changed files with 453 additions and 175 deletions

View file

@ -32,7 +32,7 @@
"use strict";
/* global window: true, XSLTProcessor: false, web: true, Component: true, APPNAME: false, APPVERSION: false, DEBUG: true */
/* global window: true, XSLTProcessor: false, APPNAME: false, APPVERSION: false, DEBUG: true */
if (typeof module !== 'undefined') {
var Component;

View file

@ -145,7 +145,7 @@ str.toHex = function(n, cch)
*
* Alias for "0x" + str.toHex(b, 2)
*
* @param {number|undefined} b is a byte value
* @param {number|null|undefined} b is a byte value
* @return {string} the hex representation of b
*/
str.toHexByte = function(b)
@ -158,7 +158,7 @@ str.toHexByte = function(b)
*
* Alias for "0x" + str.toHex(w, 4)
*
* @param {number|undefined} w is a word (16-bit) value
* @param {number|null|undefined} w is a word (16-bit) value
* @return {string} the hex representation of w
*/
str.toHexWord = function(w)
@ -171,7 +171,7 @@ str.toHexWord = function(w)
*
* Alias for "0x" + toHex(l)
*
* @param {number|undefined} l is a dword (32-bit) value
* @param {number|null|undefined} l is a dword (32-bit) value
* @return {string} the hex representation of w
*/
str.toHexLong = function(l)

View file

@ -39,7 +39,7 @@ var usr = {};
*
* @param {Array} a is an array
* @param {number|string|Array|Object} v
* @param {function((number|string), (number|string))} [fnCompare]
* @param {function((number|string|Array|Object), (number|string|Array|Object))} [fnCompare]
* @return {number} the index of matching entry if non-negative, otherwise the index of the insertion point
*/
usr.binarySearch = function(a, v, fnCompare) {
@ -73,7 +73,7 @@ usr.binarySearch = function(a, v, fnCompare) {
*
* @param {Array} a is an array
* @param {number|string|Array|Object} v is the value to insert
* @param {function((number|string), (number|string))} [fnCompare]
* @param {function((number|string|Array|Object), (number|string|Array|Object))} [fnCompare]
*/
usr.binaryInsert = function(a, v, fnCompare) {
var index = usr.binarySearch(a, v, fnCompare);