static void rcvr_spi_multi ( BYTE *buff, /* Pointer to data buffer */ UINT btr /* Number of bytes to receive (even number) */ ) { /* Read multiple bytes, send 0xFF as dummy */ TM_SPI_ReadMulti(FATFS_SPI, buff, 0xFF, btr); }
void TM_NRF24L01_ReadRegisterMulti(uint8_t reg, uint8_t* data, uint8_t count) { NRF24L01_CSN_LOW; TM_SPI_Send(NRF24L01_SPI, NRF24L01_READ_REGISTER_MASK(reg)); TM_SPI_ReadMulti(NRF24L01_SPI, data, NRF24L01_NOP_MASK, count); NRF24L01_CSN_HIGH; }