• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

_resources/FIFO_Utility_Tool/03-Aug-2024-1,226847

a3g4250d_STdC/driver/03-Aug-2024-2,6811,522

ais25ba_STdC/driver/03-Aug-2024-818420

ais2dw12_STdC/driver/03-Aug-2024-3,5291,975

ais2ih_STdC/driver/03-Aug-2024-4,3082,420

ais328dq_STdC/driver/03-Aug-2024-3,1331,758

ais3624dq_STdC/driver/03-Aug-2024-3,1551,798

asm330lhb_STdC/driver/03-Aug-2024-9,3056,478

asm330lhh_STdC/driver/03-Aug-2024-6,4353,848

asm330lhhx_STdC/driver/03-Aug-2024-11,9198,501

h3lis100dl_STdC/driver/03-Aug-2024-2,5381,429

h3lis331dl_STdC/driver/03-Aug-2024-2,7661,581

hts221_STdC/driver/03-Aug-2024-1,484748

i3g4250d_STdC/driver/03-Aug-2024-2,7891,602

iis2dh_STdC/driver/03-Aug-2024-3,6222,016

iis2dlpc_STdC/driver/03-Aug-2024-4,3732,484

iis2iclx_STdC/driver/03-Aug-2024-10,4176,985

iis2mdc_STdC/driver/03-Aug-2024-1,786915

iis328dq_STdC/driver/03-Aug-2024-3,1101,755

iis3dhhc_STdC/driver/03-Aug-2024-2,2551,183

iis3dwb_STdC/driver/03-Aug-2024-4,2302,431

ilps22qs_STdC/driver/03-Aug-2024-1,9901,271

ilps28qsw_STdC/driver/03-Aug-2024-1,9541,236

ism303dac_STdC/driver/03-Aug-2024-5,1762,944

ism330dhcx_STdC/driver/03-Aug-2024-15,61010,590

ism330dlc_STdC/driver/03-Aug-2024-10,7556,933

ism330is_STdC/driver/03-Aug-2024-6,2884,295

l20g20is_STdC/driver/03-Aug-2024-1,9171,088

l3gd20h_STdC/driver/03-Aug-2024-3,2011,916

lis25ba_STdC/driver/03-Aug-2024-837438

lis2de12_STdC/driver/03-Aug-2024-3,6092,023

lis2dh12_STdC/driver/03-Aug-2024-3,8542,196

lis2dh_STdC/driver/03-Aug-2024-3,7122,101

lis2ds12_STdC/driver/03-Aug-2024-5,0602,903

lis2dtw12_STdC/driver/03-Aug-2024-4,3662,475

lis2du12_STdC/driver/03-Aug-2024-2,6821,832

lis2dux12_STdC/driver/03-Aug-2024-6,3674,449

lis2duxs12_STdC/driver/03-Aug-2024-6,5734,603

lis2dw12_STdC/driver/03-Aug-2024-4,3612,468

lis2hh12_STdC/driver/03-Aug-2024-3,5012,109

lis2mdl_STdC/driver/03-Aug-2024-1,863954

lis331dlh_STdC/driver/03-Aug-2024-3,1611,798

lis3de_STdC/driver/03-Aug-2024-3,5621,949

lis3dh_STdC/driver/03-Aug-2024-3,8082,123

lis3dhh_STdC/driver/03-Aug-2024-2,1041,056

lis3dsh_STdC/driver/03-Aug-2024-1,7911,212

lis3mdl_STdC/driver/03-Aug-2024-2,1471,133

lps22ch_STdC/driver/03-Aug-2024-2,7661,463

lps22df_STdC/driver/03-Aug-2024-1,9121,233

lps22hb_STdC/driver/03-Aug-2024-2,7351,408

lps22hh_STdC/driver/03-Aug-2024-2,6501,418

lps25hb_STdC/driver/03-Aug-2024-2,6451,374

lps27hhtw_STdC/driver/03-Aug-2024-2,8371,531

lps27hhw_STdC/driver/03-Aug-2024-2,8031,497

lps28dfw_STdC/driver/03-Aug-2024-1,9731,274

lps33hw_STdC/driver/03-Aug-2024-2,7321,408

lps33k_STdC/driver/03-Aug-2024-1,132514

lps33w_STdC/driver/03-Aug-2024-2,7171,394

lsm303agr_STdC/driver/03-Aug-2024-5,2633,028

lsm303ah_STdC/driver/03-Aug-2024-6,0553,456

lsm6ds3_STdC/driver/03-Aug-2024-9,3495,756

lsm6ds3tr-c_STdC/driver/03-Aug-2024-11,0227,031

lsm6dsl_STdC/driver/03-Aug-2024-10,7036,712

lsm6dsm_STdC/driver/03-Aug-2024-12,0817,501

lsm6dso16is_STdC/driver/03-Aug-2024-6,2884,295

lsm6dso32_STdC/driver/03-Aug-2024-13,6328,942

lsm6dso32x_STdC/driver/03-Aug-2024-16,67711,388

lsm6dso_STdC/driver/03-Aug-2024-16,18910,631

lsm6dsox_STdC/driver/03-Aug-2024-19,34713,101

lsm6dsr_STdC/driver/03-Aug-2024-15,71110,260

lsm6dsrx_STdC/driver/03-Aug-2024-16,25110,707

lsm6dsv16bx_STdC/driver/03-Aug-2024-12,2438,349

lsm6dsv16x_STdC/driver/03-Aug-2024-15,04310,154

lsm6dsv_STdC/driver/03-Aug-2024-14,1959,569

lsm9ds1_STdC/driver/03-Aug-2024-6,4114,075

sths34pf80_STdC/driver/03-Aug-2024-2,9171,650

stts22h_STdC/driver/03-Aug-2024-1,031493

stts751_STdC/driver/03-Aug-2024-1,143531

CMakeLists.txtD03-Aug-20241.3 KiB9895

LICENSED03-Aug-20241.5 KiB3023

READMED03-Aug-20244.8 KiB151129

README

1C-Driver-MEMS
2#############
3
4Origin:
5   ST Microelectronics
6   https://www.st.com/en/embedded-software/c-driver-mems.html
7
8Status:
9   version v2.3
10
11Purpose:
12   ST Microelectronics standard C platform-independent drivers for MEMS
13   motion and environmental sensors.
14
15Description:
16   This package is an extract (examples have not been retained) of official
17   C-Driver-MEMS package written by ST Microelectronics.
18   It contains standard drivers for STMicroelectronics MEMS sensors to
19   provide a common and stable interface to access sensor registers.
20   For each supported sensor following files are provided:
21
22       - xyz_reg.c: contains the function to read/write 'xyz' sensor registers
23       - xyz_reg.h: contains structures and defines to describe in details
24                    the 'xyz' sensor registers.
25
26   The driver is platform-independent, you only need to define the two
27   functions for read and write transactions from the sensor hardware bus
28   (ie. SPI or I2C). In addition you may define a mdelay (milliseconds)
29   routine.
30
31   Define in your 'xyz' driver code the read and write functions that use the
32   I2C or SPI platform driver (plus the optional mdelay function) like the following:
33
34   /** Please note that is MANDATORY: return 0 -> no Error.**/
35   int platform_wr(void *handle, u8_t reg, const u8_t *bufp, u16_t len);
36   int platform_rd(void *handle, u8_t reg, u8_t *bufp, u16_t len);
37
38   /** Component optional fields **/
39   void platform_mdelay(u32_t millisec);
40
41
42   stmdev_ctx_t stmdev_ctx = {
43       .read_reg = (stmdev_read_ptr) platform_rd,
44       .write_reg = (stmdev_write_ptr) platform_wr,
45
46       /** Component optional fields **/
47       .mdelay = (stmdev_mdelay_ptr) platform_mdelay,
48   };
49
50   Driver versions in this package:
51
52     - a3g4250d_STdC         v1.1.0
53     - ais25ba_STdC          v1.1.0
54     - ais2dw12_STdC         v1.1.0
55     - ais2ih_STdC           v1.1.0
56     - ais328dq_STdC         v1.1.0
57     - ais3624dq_STdC        v1.1.0
58     - asm330lhb_STdC        v1.0.0
59     - asm330lhh_STdC        v2.1.0
60     - asm330lhhx_STdC       v1.1.1
61     - h3lis100dl_STdC       v1.1.0
62     - h3lis331dl_STdC       v1.1.0
63     - hts221_STdC           v1.1.0
64     - i3g4250d_STdC         v1.1.0
65     - iis2dh_STdC           v1.1.0
66     - iis2dlpc_STdC         v1.1.0
67     - iis2iclx_STdC         v1.1.0
68     - iis2mdc_STdC          v1.1.0
69     - iis328dq_STdC         v1.1.0
70     - iis3dhhc_STdC         v1.1.0
71     - iis3dwb_STdC          v1.1.1
72     - ilps22qs_STdC         v2.1.1
73     - ilps28qsw_STdC        v1.0.1
74     - ism303dac_STdC        v1.1.0
75     - ism330dhcx_STdC       v1.1.0
76     - ism330dlc_STdC        v1.1.0
77     - ism330is_STdC         v2.1.0
78     - l20g20is_STdC         v1.1.0
79     - l3gd20h_STdC          v1.1.0
80     - lis25ba_STdC          v1.1.0
81     - lis2de12_STdC         v1.1.0
82     - lis2dh12_STdC         v1.1.0
83     - lis2dh_STdC           v1.1.0
84     - lis2ds12_STdC         v1.1.0
85     - lis2dtw12_STdC        v1.1.0
86     - lis2du12_STdC         v1.1.3
87     - lis2dux12_STdC        v1.1.4
88     - lis2duxs12_STdC       v1.1.5
89     - lis2dw12_STdC         v1.1.0
90     - lis2hh12_STdC         v1.1.0
91     - lis2mdl_STdC          v1.1.0
92     - lis331dlh_STdC        v1.1.0
93     - lis3de_STdC           v1.1.0
94     - lis3dh_STdC           v1.1.0
95     - lis3dhh_STdC          v1.1.0
96     - lis3dsh_STdC          v1.1.0
97     - lis3mdl_STdC          v1.1.0
98     - lps22ch_STdC          v1.1.0
99     - lps22df_STdC          v1.1.0
100     - lps22hb_STdC          v1.1.0
101     - lps22hh_STdC          v1.1.0
102     - lps25hb_STdC          v1.1.0
103     - lps27hhtw_STdC        v1.1.0
104     - lps27hhw_STdC         v1.1.0
105     - lps28dfw_STdC         v1.1.0
106     - lps33hw_STdC          v1.1.0
107     - lps33k_STdC           v1.1.0
108     - lps33w_STdC           v1.1.0
109     - lsm303agr_STdC        v1.1.0
110     - lsm303ah_STdC         v1.1.0
111     - lsm6ds3_STdC          v1.1.1
112     - lsm6ds3tr-c_STdC      v1.1.0
113     - lsm6dsl_STdC          v1.1.0
114     - lsm6dsm_STdC          v1.1.0
115     - lsm6dso16is_STdC      v2.1.1
116     - lsm6dso32_STdC        v1.1.0
117     - lsm6dso32x_STdC       v1.1.0
118     - lsm6dso_STdC          v2.1.0
119     - lsm6dsox_STdC         v2.0.1
120     - lsm6dsr_STdC          v1.1.0
121     - lsm6dsrx_STdC         v1.1.0
122     - lsm6dsv16bx_STdC      v2.1.2
123     - lsm6dsv16x_STdC       v2.2.1
124     - lsm6dsv_STdC          v1.2.1
125     - lsm9ds1_STdC          v1.1.0
126     - sths34pf80_STdC       v1.0.0
127     - stts22h_STdC          v1.1.0
128     - stts751_STdC          v1.1.0
129
130Dependencies:
131    None.
132
133URL:
134   https://www.st.com/en/embedded-software/c-driver-mems.html
135
136commit:
137   version v2.3
138
139Maintained-by:
140   ST Microelectronics
141
142License:
143   BSD-3-Clause
144
145License Link:
146   https://opensource.org/licenses/BSD-3-Clause
147
148Patch List:
149   * sensor: lsm6dso: Disable -Wmaybe-uninitialized for lsm6dso_mode_set
150     - Modified sensor/stmemsc/lsm6dso_STdC/driver/lsm6dso_reg.c
151