Deal all, I am trying to enable SD card logging of timestamp, accelerometer, gyro and magnetometer data on the Shimmer2r + Kinematics board. I'm getting a bit stuck on enabling SD logging of the magnetometer data. To start with, I have essentially extended the Shimmer HostTimeLogging app. I am aware that the Magnetometer and SD card access utilise the same bus USART0, thus i need to switch USART0 between the Magnetometer (I2C mode) and the SD card access (SPI mode) in a timely manner. This seems straightforward for the Magnetometer, i just use calls to Magnetometer.enableBus() or Magnetometer.disableBus(). However, I can't figure out which commands I should be using for the SD card access. I'm not sure whether those within the FatFs interface such as FatFs.mount() and FatFs.unmount() are the correct calls to make in this instance, looking at the lower-level code, they seem to do more than just set up the bus mode. I think i should be using calls such as Usart.setModeSpi(config) but am unsure how to expose these function in the top level code in a safe manner alongside FatFs. Any help on this would be appreciated. regards Chris
_______________________________________________ Shimmer-users mailing list [email protected] https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
