stm32-rs | Embedded Rust device crates for STM32 microcontrollers

 by   stm32-rs Python Version: v0.15.1 License: Apache-2.0

kandi X-RAY | stm32-rs Summary

stm32-rs is a Python library typically used in Embedded System applications. stm32-rs has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub.
Embedded Rust device crates for STM32 microcontrollers
    Support
      Quality
        Security
          License
            Reuse
            Support
              Quality
                Security
                  License
                    Reuse

                      kandi-support Support

                        summary
                        stm32-rs has a medium active ecosystem.
                        summary
                        It has 876 star(s) with 190 fork(s). There are 26 watchers for this library.
                        summary
                        There were 2 major release(s) in the last 12 months.
                        summary
                        There are 52 open issues and 174 have been closed. On average issues are closed in 111 days. There are 26 open pull requests and 0 closed requests.
                        summary
                        It has a neutral sentiment in the developer community.
                        summary
                        The latest version of stm32-rs is v0.15.1
                        stm32-rs Support
                          Best in #Python
                            Average in #Python
                            stm32-rs Support
                              Best in #Python
                                Average in #Python

                                  kandi-Quality Quality

                                    summary
                                    stm32-rs has 0 bugs and 0 code smells.
                                    stm32-rs Quality
                                      Best in #Python
                                        Average in #Python
                                        stm32-rs Quality
                                          Best in #Python
                                            Average in #Python

                                              kandi-Security Security

                                                summary
                                                stm32-rs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
                                                summary
                                                stm32-rs code analysis shows 0 unresolved vulnerabilities.
                                                summary
                                                There are 0 security hotspots that need review.
                                                stm32-rs Security
                                                  Best in #Python
                                                    Average in #Python
                                                    stm32-rs Security
                                                      Best in #Python
                                                        Average in #Python

                                                          kandi-License License

                                                            summary
                                                            stm32-rs is licensed under the Apache-2.0 License. This license is Permissive.
                                                            summary
                                                            Permissive licenses have the least restrictions, and you can use them in most projects.
                                                            stm32-rs License
                                                              Best in #Python
                                                                Average in #Python
                                                                stm32-rs License
                                                                  Best in #Python
                                                                    Average in #Python

                                                                      kandi-Reuse Reuse

                                                                        summary
                                                                        stm32-rs releases are available to install and integrate.
                                                                        summary
                                                                        Build file is available. You can build the component from source.
                                                                        summary
                                                                        Installation instructions are not available. Examples and code snippets are available.
                                                                        summary
                                                                        It has 1993 lines of code, 48 functions and 14 files.
                                                                        summary
                                                                        It has low code complexity. Code complexity directly impacts maintainability of the code.
                                                                        stm32-rs Reuse
                                                                          Best in #Python
                                                                            Average in #Python
                                                                            stm32-rs Reuse
                                                                              Best in #Python
                                                                                Average in #Python
                                                                                  Top functions reviewed by kandi - BETA
                                                                                  kandi has reviewed stm32-rs and discovered the below as its top functions. This is intended to give you an instant insight into stm32-rs implemented functionality, and help decide if they suit your requirements.
                                                                                  • Parse a device
                                                                                    • Expand cluster nodes
                                                                                    • Get the value of the tag
                                                                                    • Get the value of the specified tag from the node
                                                                                  • Process a device
                                                                                    • Process a YAML file
                                                                                  • Parse a svdf file
                                                                                  • Parse a peripheral device
                                                                                  • Produce HTML table for debugging
                                                                                    • Generate an html page
                                                                                    • Return an html table of the details
                                                                                    • Return HTML table of fields
                                                                                  • Make a string representation of the given registers
                                                                                  • Generate HTML page for device
                                                                                  • Parse the peripheral register
                                                                                  • Return a list of device rows
                                                                                  • Read device table
                                                                                  • Generate a text description for each device
                                                                                  • Generate index page
                                                                                  • Process svdf file
                                                                                  Get all kandi verified functions for this library.
                                                                                  Get all kandi verified functions for this library.

                                                                                  stm32-rs Key Features

                                                                                  Embedded Rust device crates for STM32 microcontrollers

                                                                                  stm32-rs Examples and Code Snippets

                                                                                  No Code Snippets are available at this moment for stm32-rs.
                                                                                  Community Discussions

                                                                                  Trending Discussions on stm32-rs

                                                                                  Rust STM32: webUSB publishing sensors
                                                                                  chevron right

                                                                                  Trending Discussions on stm32-rs

                                                                                  QUESTION

                                                                                  Rust STM32: webUSB publishing sensors
                                                                                  Asked 2020-Mar-23 at 18:44

                                                                                  For a hobby project using the stm32f1xx-hal, I'm wanting to periodically read a sensor and then push the values such that I can graph them realtime in a webUSB app.

                                                                                  I have found an example in webusb_blinky by mvirkkunen which demonstrates the connectivity portion, but it's not clear to me how I would adapt it to publish sensor values. Should I be overriding control_in?

                                                                                  Any suggestions/help would be appreciated. Thanks!

                                                                                  ANSWER

                                                                                  Answered 2020-Mar-23 at 18:44

                                                                                  You could define a control transfer that requested the device respond with the current sensor values but the more natural USB mechanism for publishing sensor updates is with an IN endpoint.

                                                                                  The usbd-serial module is the best example I can find of creating and using endpoints with this framework. A serial port consists of both an IN and OUT endpoint for bidirectional streaming of data. For your application you would only need the IN endpoint since the device only generates data.

                                                                                  Source https://stackoverflow.com/questions/60800934

                                                                                  Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                                                                                  Vulnerabilities

                                                                                  No vulnerabilities reported

                                                                                  Install stm32-rs

                                                                                  You can download it from GitHub.
                                                                                  You can use stm32-rs like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

                                                                                  Support

                                                                                  Please see the individual crate READMEs for the full list of devices each crate supports. All SVDs released by ST for STM32 devices are covered, so probably your device is supported to some extent!.
                                                                                  Find more information at:
                                                                                  Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                  Find more libraries
                                                                                  Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                  Save this library and start creating your kit
                                                                                  CLONE
                                                                                • HTTPS

                                                                                  https://github.com/stm32-rs/stm32-rs.git

                                                                                • CLI

                                                                                  gh repo clone stm32-rs/stm32-rs

                                                                                • sshUrl

                                                                                  git@github.com:stm32-rs/stm32-rs.git

                                                                                • Share this Page

                                                                                  share link

                                                                                  Explore Related Topics

                                                                                  Reuse Pre-built Kits with stm32-rs

                                                                                  Consider Popular Python Libraries

                                                                                  public-apis

                                                                                  by public-apis

                                                                                  system-design-primer

                                                                                  by donnemartin

                                                                                  Python

                                                                                  by TheAlgorithms

                                                                                  Python-100-Days

                                                                                  by jackfrued

                                                                                  youtube-dl

                                                                                  by ytdl-org

                                                                                  Try Top Libraries by stm32-rs

                                                                                  stm32f1xx-hal

                                                                                  by stm32-rsRust

                                                                                  stm32f4xx-hal

                                                                                  by stm32-rsRust

                                                                                  stm32h7xx-hal

                                                                                  by stm32-rsRust

                                                                                  stm32f3xx-hal

                                                                                  by stm32-rsRust

                                                                                  stm32l4xx-hal

                                                                                  by stm32-rsRust

                                                                                  Compare Python Libraries with Highest Support

                                                                                  core

                                                                                  by home-assistant

                                                                                  youtube-dl

                                                                                  by ytdl-org

                                                                                  scikit-learn

                                                                                  by scikit-learn

                                                                                  models

                                                                                  by tensorflow

                                                                                  fastapi

                                                                                  by tiangolo

                                                                                  Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                  Find more libraries
                                                                                  Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                  Save this library and start creating your kit