コード例 #1
0
ファイル: index.js プロジェクト: HasAndries/node-nrf
 nrf.end = function (cb) {
     var pipes = txPipes.concat(rxPipes);
     pipes.forEach(function (pipe) { pipe.close(); });
     txPipes.length = rxPipes.length = txQ.length = 0;
     ready = false;
     nrf._irqOff();
     nrf.setCE(false,'stby2a');
     nrf.setStates({PWR_UP:false}, function (e) {
         if (e) nrf.emit('error', e);
         else if (cb) cb();
     });
 };