ChibiOS 21.11.4
adxl317.c File Reference

ADXL317 MEMS interface module code. More...

#include "hal.h"
#include "adxl317.h"

Go to the source code of this file.

Functions

static msg_t adxl317I2CReadRegister (ADXL317Driver *devp, uint8_t reg, uint8_t *b, size_t n)
 Reads a generic register value using I2C.
static msg_t adxl317I2CWriteRegister (ADXL317Driver *devp, uint8_t reg, uint8_t *b, size_t n)
 Writes a value into a generic register using I2C.
static size_t acc_get_axes_number (void *ip)
 Return the number of axes of the BaseAccelerometer.
static msg_t acc_read_raw (void *ip, int32_t axes[])
 Retrieves raw data from the BaseAccelerometer.
static msg_t acc_read_cooked (void *ip, float axes[])
 Retrieves cooked data from the BaseAccelerometer.
static msg_t acc_set_bias (void *ip, float *bp)
 Set bias values for the BaseAccelerometer.
static msg_t acc_reset_bias (void *ip)
 Reset bias values for the BaseAccelerometer.
static msg_t acc_set_sensivity (void *ip, float *sp)
 Set sensitivity values for the BaseAccelerometer.
static msg_t acc_reset_sensivity (void *ip)
 Reset sensitivity values for the BaseAccelerometer.
void adxl317ObjectInit (ADXL317Driver *devp, uint8_t *txbp, uint8_t *rxbp)
 Initializes an instance.
msg_t adxl317Start (ADXL317Driver *devp, const ADXL317Config *config)
 Configures and activates ADXL317 Complex Driver peripheral.
void adxl317Stop (ADXL317Driver *devp)
 Deactivates the ADXL317 Complex Driver peripheral.

Variables

static const struct ADXL317VMT vmt_device
static const struct BaseAccelerometerVMT vmt_accelerometer

Detailed Description

ADXL317 MEMS interface module code.

Definition in file adxl317.c.