04-20-2022 11:34 AM
Hi,
I was looking at BMA456 datasheet and got curious about the code input part, so I asked.
-> In the red square, <init_array[]=read_file(init_file)> I can't understand the array part in this code. What does the code array mean?
What files should I insert? I'm going to use anymotion and single tap interrupt.
-> burst_write_reg(addr=0x5E,val=init_array[])
I don't know how to enter the code for this part either. It only says to contact BOSCH, but it's not properly written on Datasheet.
Please give me some advice.
04-21-2022 04:33 AM
Hi mgchoi,
The array is used to cache the contents of the config file for segmented writing to the sensor.
Burst write is to write multiple bytes at one time. Don't write one by yourself.
There was BMA456 sensor API on github which implemented how to access sensor by host MCU. https://github.com/BoschSensortec/BMA456-Sensor-API/tree/master/bma456_examples
bma4_write_config_file() function in sensor API implement loading config file.