Example #1
0
 nrf.setCE = function (state, block) {
     if (typeof state === 'string') ce.mode(state);
     else ce.value(state);
     if (nrf._debug) console.log("Set CE "+state+".");
     if (block) nrf.blockMicroseconds(nrf._T[block]);       // (assume ce changed TX/RX mode)
 };
Example #2
0
 if (val !== d[0] || reg === _statusReg) nrf.execCommand(['W_REGISTER', reg], [val], function () {
     if (settlingNeeded) nrf.blockMicroseconds(settlingNeeded);  // see p.24
     cb.apply(this, arguments);
 });