static inline void spi_write(const void * data, size_t size) { nrfx_spim_xfer_desc_t xfer_desc = NRFX_SPIM_XFER_TRX(data, size, NULL, 0); APP_ERROR_CHECK(nrfx_spim_xfer_dcx(&spi, &xfer_desc, 0, 1)); //while (!spi_xfer_done) //{ //__WFE(); //} ...