Ejemplo n.º 1
0
 nrf.readPayload({width:this._size}, function (e,d) {
     if (e) this.emit('error', e);
     else this._wantsRead = this.push(d);
     nrf._checkStatus(false);         // see footnote c, p.63
 }.bind(this));
Ejemplo n.º 2
0
 PxX.prototype._read = function () {
     this._wantsRead = true;
     nrf._checkStatus(false);
 };
Ejemplo n.º 3
0
 else if (d.RX_DR && d.RX_P_NO === 0x07) setTimeout(function () {
     // HACK: chip seems to assert RX_DR a while before setting RX_P_NO, so poll if necessary
     // TODO: this may actually just happen until we reset RX_DR (maybe FLUSH_RX or similar unsyncs?)
     nrf._checkStatus(false);
 }, 0);