| 27 | SPI mSPI; |
| 28 | |
| 29 | void writeHeader() { |
| 30 | // Write out 50 zeros to the spi line (6 blocks of 8 followed by two single bit writes) |
| 31 | mSPI.select(); |
| 32 | mSPI.template writeBit<0>(0); |
| 33 | mSPI.writeByte(0); |
| 34 | mSPI.writeByte(0); |
| 35 | mSPI.writeByte(0); |
| 36 | mSPI.template writeBit<0>(0); |
| 37 | mSPI.writeByte(0); |
| 38 | mSPI.writeByte(0); |
| 39 | mSPI.writeByte(0); |
| 40 | // Note: endTransaction() may not be strictly necessary for SM16716 |
| 41 | // since we're just streaming bytes. However, it's kept here for consistency |
| 42 | // with other SPI-based controllers and as defensive programming. |
| 43 | mSPI.endTransaction(); |
| 44 | } |
| 45 | |
| 46 | public: |
| 47 | SM16716Controller() FL_NOEXCEPT {} |
nothing calls this directly
no test coverage detected