(result)
| 321 | } |
| 322 | } |
| 323 | readWords(result) { |
| 324 | this.waitBusy(); |
| 325 | this.select.write(0); |
| 326 | this.spi.write16(0x1000); |
| 327 | this.waitBusy(); |
| 328 | |
| 329 | // dummy |
| 330 | this.spi.transfer16(0); |
| 331 | this.waitBusy(); |
| 332 | |
| 333 | for (let i = 0, length = result.length; i < length; i++) |
| 334 | result[i] = this.spi.transfer16(0); |
| 335 | |
| 336 | this.select.write(1); |
| 337 | |
| 338 | return result; |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | const Filter = { |
no test coverage detected