{"id":45197224,"url":"https://github.com/stmicroelectronics/lps33w-pid","last_synced_at":"2026-02-20T13:00:53.608Z","repository":{"id":98390319,"uuid":"360116741","full_name":"STMicroelectronics/lps33w-pid","owner":"STMicroelectronics","description":"lps33w platform independent driver based on Standard C language and compliant with MISRA standard","archived":false,"fork":false,"pushed_at":"2024-06-28T14:14:43.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-06-28T15:39:40.602Z","etag":null,"topics":["mems-sensors","stmicroelectronics"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/STMicroelectronics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-21T09:51:48.000Z","updated_at":"2024-06-28T15:39:41.271Z","dependencies_parsed_at":"2024-06-20T02:49:36.618Z","dependency_job_id":null,"html_url":"https://github.com/STMicroelectronics/lps33w-pid","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/STMicroelectronics/lps33w-pid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STMicroelectronics%2Flps33w-pid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STMicroelectronics%2Flps33w-pid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STMicroelectronics%2Flps33w-pid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STMicroelectronics%2Flps33w-pid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/STMicroelectronics","download_url":"https://codeload.github.com/STMicroelectronics/lps33w-pid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STMicroelectronics%2Flps33w-pid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29651964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mems-sensors","stmicroelectronics"],"created_at":"2026-02-20T13:00:27.096Z","updated_at":"2026-02-20T13:00:53.591Z","avatar_url":"https://github.com/STMicroelectronics.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![latest tag](https://img.shields.io/github/v/tag/STMicroelectronics/lps33w-pid.svg?color=brightgreen)\n\n(**This device is obsolete and no longer maintained**)\n\n# 1 - Introduction\n\nSensor driver for LPS33W sensor written in C programming language. This repository contains the sensor driver files (.h and .c) to be included, or linked directly as a git submodule, in your project. The driver is MISRA compliant and the documentation can be generated using the [Doxygen](http://www.doxygen.org/) tool.\n\nIn order to `clone` the complete content of the repository folder, use the command:\n\n```\ngit clone https://github.com/STMicroelectronics/LPS33W-PID/\n```\n\nSome examples of driver usage can be found [here](https://github.com/STMicroelectronics/STMems_Standard_C_drivers).\n\n------\n\n\n\n# 2 - Integration details\n\nThe driver is platform-independent, you only need to define two functions for read and write transactions from the sensor hardware bus (ie. SPI or I²C) and an optional one to implement a delay of millisecond granularity. **A few devices integrate an extra bit in the communication protocol in order to enable multi read/write access, this bit must be managed in the read and write functions defined by the user.** Please refer to the read and write implementation in the [reference examples](https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lps33w_STdC/examples).\n\n\n### 2.a Source code integration\n\n- Include in your project the driver files of the sensor (.h and .c) \n- Define in your code the read and write functions that use the I²C or SPI platform driver like the following:\n\n```\n/** Please note that is MANDATORY: return 0 -\u003e no Error.**/\nint32_t platform_write(void *handle, uint8_t reg, const uint8_t *bufp, uint16_t len)\nint32_t platform_read(void *handle, uint8_t reg, uint8_t *bufp, uint16_t len)\n\n/** Optional (may be required by driver) **/\nvoid platform_delay(uint32_t millisec)\n```\n\n- Declare and initialize the structure of the device interface:\n\n```\nxxxxxxx_ctx_t dev_ctx; /** xxxxxxx is the used part number **/\ndev_ctx.write_reg = platform_write;\ndev_ctx.read_reg = platform_read;\ndev_ctx.mdelay = platform_delay;\n\n```\n\n- If needed by the platform read and write functions, initialize the handle parameter:\n\n```\ndev_ctx.handle = \u0026platform_handle;\n```\n\nSome integration examples can be found [here](https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lps33w_STdC/examples).\n\n### 2.b Required properties\n\n\u003e - A standard C language compiler for the target MCU\n\u003e - A C library for the target MCU and the desired interface (ie. SPI, I²C)\n\n------\n\n**More Information: [http://www.st.com](http://st.com/MEMS)**\n\n**Copyright (C) 2021 STMicroelectronics**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstmicroelectronics%2Flps33w-pid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstmicroelectronics%2Flps33w-pid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstmicroelectronics%2Flps33w-pid/lists"}