Hello Kmoore,
Before you code call set_interface() function, have you defined an instance of struct bma400_dev? It is better to define a global instance of struct bma400_dev.
example code like this:
struct bma400_dev bma400dev;
main(void)
{
int8_t rslt;
set_interface(BMA400_SPI_INTF, &bma400dev);
print_rslt(rslt);
rslt = bma400_init(&bma400dev);
print_rslt(rslt);
....
}
... View more