I'm having trouble driving the BMI088 with the official driver of Bosch BMI088 (link to this driver) in the ble_app_uart routine. I never get the chip ID. Bosch BMI088 official driver link address: https://github.com/BoschSensortec/BMI08x-Sensor-API . The spi read and write functions are encapsulated into the following two APIs:
int8_t user_spi_write(uint8_t cs_pin, uint8_t reg_addr, uint8_t *data, uint16_t len);
int8_t user_spi_read(uint8_t cs_pin, uint8_t reg_addr, uint8_t *data, uint16_t len);
So How can I map these two APIs into Nordic operation functions?
And The automatic selection between [CPOL = '0' and CPHA = '0'] and [CPOL = '1' and CPHA = '1'] is controlled based on the value of SCK after a falling edge of CSB (1 or 2). What SPI mode should I configure?
