I have'nt looked at the burst read.
Have you initialized BMP280, the measurement and filter settings etc?
I would make two functions:
HWSPI_Write(x) where x is data or address.
HWSPI_Read(x) where x is address.
Then you can replace the Oshonsoft spi_send and spi_receive functions in the working program.
SPI_send adr -> HWSPI_Write(adr)
SPI_send data -> HWSPI_Write(data)
SPI_receive data -> data = HWSPI_Read(adr) this includes writing address and reading data from that address.
Have you initialized BMP280, the measurement and filter settings etc?
I would make two functions:
HWSPI_Write(x) where x is data or address.
HWSPI_Read(x) where x is address.
Then you can replace the Oshonsoft spi_send and spi_receive functions in the working program.
SPI_send adr -> HWSPI_Write(adr)
SPI_send data -> HWSPI_Write(data)
SPI_receive data -> data = HWSPI_Read(adr) this includes writing address and reading data from that address.