In spi.c, there is a function called SpiReadDataCont that determines how many bytes to read based on "type" field in the HCI header (which is either HCI_TYPE_DATA or HCI_TYPE_EVNT), which comes after the SPI header. Why not just read all the bytes indicated by the length field in the SPI header? Is it not always accurate?
↧