ChibiOS 21.11.4
adxl355.c File Reference

ADXL355 MEMS interface module code. More...

#include "hal.h"
#include "adxl355.h"
#include "string.h"

Go to the source code of this file.

Functions

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.
static msg_t acc_set_full_scale (ADXL355Driver *devp, adxl355_acc_fs_t fs)
 Changes the ADXL355Driver accelerometer fullscale value.
void adxl355SPIReadRegister (ADXL355Driver *devp, uint8_t reg, size_t n, uint8_t *b)
 Reads a generic register value using SPI.
void adxl355SPIWriteRegister (ADXL355Driver *devp, uint8_t reg, size_t n, uint8_t *b)
 Writes a value into a generic register using SPI.
void adxl355ObjectInit (ADXL355Driver *devp, uint8_t *txbp, uint8_t *rxbp)
 Initializes an instance.
void adxl355Start (ADXL355Driver *devp, const ADXL355Config *config)
 Configures and activates ADXL355 Complex Driver peripheral.
void adxl355Stop (ADXL355Driver *devp)
 Deactivates the ADXL355 Complex Driver peripheral.

Variables

static const struct ADXL355VMT vmt_device
static const struct BaseAccelerometerVMT vmt_accelerometer

Detailed Description

ADXL355 MEMS interface module code.

Definition in file adxl355.c.