0
\$\begingroup\$

I am working on a project to interface LSM9DS0 with a MSP430. Looking for a driver in C / C++ that I can use as a reference design.

\$\endgroup\$
1
\$\begingroup\$

Perhaps this sample code and project will help you out a little

It's part of a larger project based on the MSP430 so don't expect to be able to drag and drop it, but it may help you figure out how to initialize and read values from the device.

\$\endgroup\$
2
\$\begingroup\$

A Google search provides these design files for a breakout board, and the C++ files for interfacing it with an Arduino. Also some from Adafruit.

Good enough for a reference while writing your own drivers.

\$\endgroup\$
1
  • \$\begingroup\$ This is what I would go with. Sparkfun's libraries are very well documented, and easy to port over to different platforms. \$\endgroup\$ – darudude Jan 5 '15 at 21:07
1
\$\begingroup\$

Driver? I thought only Windows used drivers these days...

It's an I2C device. Read the datasheet, get the I2C commands, and use the standard I2C functions your system's libraries provide.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Linux drivers..? I've noticed the MCU vendors are starting to talk more and more about "drivers" when referring to simple hardware abstraction layers for say I2C. Then pushing their solutions as a way to differentiate themselves. It makes it sound complicated and scary. \$\endgroup\$ – Some Hardware Guy Jan 5 '15 at 20:40
  • \$\begingroup\$ Linux kernel modules :P And I can't remember the last time I had to install one to get some hardware working - it just works. \$\endgroup\$ – Majenko Jan 5 '15 at 20:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.