For interfacing with ADXL362 over PIC32 interrupt driven SPI