Code Monkey home page Code Monkey logo

bmi160-rs's People

Contributors

avsaase avatar eldruin avatar lance-kraakman avatar qwandor avatar thebutlah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bmi160-rs's Issues

Add more configuration options

Coming from Zephyr (and it's BMI160 library), there are two features that seem to be missing that would be really nice to have:

  • Configuring Accelerometer and Gyroscope Ranges and ODR (see here) -> with the scale/ranges known, this will also fix #2 and allow to calculate meaningful values
  • Trigger / Interrupt Support (see here)
  • Setting up the low-pass filter

SPI interface confusion

Hi, sorry this is more of a question then an issue.

I've been trying to get this crate working with through an SPI interface on an esp32 and haven't had much success.

It is my understanding that the read bit should be set when reading a register.

image

When I look at interface.rs I see that the read bit is being set when writing to the device instead of when reading.
for example:

  fn write_register(&mut self, register: u8, data: u8) -> Result<(), Self::Error> {
          self.cs.set_low().map_err(Error::Pin)?;
          let payload: [u8; 2] = [register + 0x80, data];
          let result = self.spi.write(&payload).map_err(Error::Comm);
  
          self.cs.set_high().map_err(Error::Pin)?;
          result
      }

I was wondering if you could guide me on this, or am I just reading the datasheet completely wrong, tia.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.