#include "bmi160.h"
#include "stm32f4_spi.h"
#include "stm32f4_delay.h"
#include "string.h"
#define MAX_ARG_NUM 32 //max of arg num
char bmi160_reg_arg_table[MAX_ARG_NUM][2]={
{0x7e,0x11},
{0x7e,0x15},
{0x7e,0x19},
{0x77,0xc0},//offset enable
{0x69,0x7d},//foc enable
{0x7e,0x03},//trigger foc
//{0x47,0xc0},//fifo enable
{0,0}
};
unsigned char bmi160_read_reg(unsigned char addr,unsigned char *p_read_buff,unsigned int
#include "stm32f4_spi.h"
#include "stm32f4_delay.h"
#include "string.h"
#define MAX_ARG_NUM 32 //max of arg num
char bmi160_reg_arg_table[MAX_ARG_NUM][2]={
{0x7e,0x11},
{0x7e,0x15},
{0x7e,0x19},
{0x77,0xc0},//offset enable
{0x69,0x7d},//foc enable
{0x7e,0x03},//trigger foc
//{0x47,0xc0},//fifo enable
{0,0}
};
unsigned char bmi160_read_reg(unsigned char addr,unsigned char *p_read_buff,unsigned int