Bridle API 4.1.99
A Zephyr based application framework
Loading...
Searching...
No Matches

This section groups all the data output functions. More...

Functions

int32_t stk8ba58_acceleration_raw_get (const struct i2c_dt_spec *i2c, int16_t *buff)
 Linear acceleration output register.
 

Detailed Description

This section groups all the data output functions.

Function Documentation

◆ stk8ba58_acceleration_raw_get()

int32_t stk8ba58_acceleration_raw_get ( const struct i2c_dt_spec *  i2c,
int16_t *  buff 
)

#include <drivers/sensor/sensortek/stk8ba58/stk8ba58_reg.c>

Linear acceleration output register.

The value is expressed as a 16-bit word in two’s complement.[get]

Parameters
i2cRead / write interface definitions.(ptr)
buffBuffer that stores data read.(ptr)
Return values
Interfacestatus (MANDATORY: return 0 -> no Error).