Loading...
Searching...
No Matches

Default configuration for ADXL345 devices. More...

Detailed Description

Default configuration for ADXL345 devices.

Author
Dylan Laduranty dylan.nosp@m..lad.nosp@m.urant.nosp@m.y@me.nosp@m.sotic.nosp@m..com

Definition in file adxl345_params.h.

#include "board.h"
#include "saul_reg.h"
#include "adxl345.h"
+ Include dependency graph for adxl345_params.h:

Go to the source code of this file.

Variables

static const adxl345_params_t adxl345_params []
 ADXL345 configuration.
 
static const saul_reg_info_t adxl345_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Set default configuration parameters for the ADXL345 driver

#define ADXL345_PARAM_I2C   (I2C_DEV(0))
 
#define ADXL345_PARAM_ADDR   (ADXL345_ADDR_53)
 
#define ADXL345_PARAM_RATE   (ADXL345_RATE_200HZ)
 
#define ADXL345_PARAM_RANGE   (ADXL345_RANGE_16G)
 
#define ADXL345_PARAM_INTERRUPT
 
#define ADXL345_PARAM_FULL_RES   (1)
 
#define ADXL345_PARAM_OFFSET   { 0, 0, 0 }
 
#define ADXL345_PARAMS
 
#define ADXL345_SAUL_INFO   { .name = "adxl345" }
 

Macro Definition Documentation

◆ ADXL345_PARAM_ADDR

#define ADXL345_PARAM_ADDR   (ADXL345_ADDR_53)

Definition at line 38 of file adxl345_params.h.

◆ ADXL345_PARAM_FULL_RES

#define ADXL345_PARAM_FULL_RES   (1)

Definition at line 51 of file adxl345_params.h.

◆ ADXL345_PARAM_I2C

#define ADXL345_PARAM_I2C   (I2C_DEV(0))

Definition at line 35 of file adxl345_params.h.

◆ ADXL345_PARAM_INTERRUPT

#define ADXL345_PARAM_INTERRUPT
Value:
{0x0F, 0xBF, 0x40, 0xF0, 0xFF, 0x00, 0x00, \
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F}

Definition at line 47 of file adxl345_params.h.

◆ ADXL345_PARAM_OFFSET

#define ADXL345_PARAM_OFFSET   { 0, 0, 0 }

Definition at line 54 of file adxl345_params.h.

◆ ADXL345_PARAM_RANGE

#define ADXL345_PARAM_RANGE   (ADXL345_RANGE_16G)

Definition at line 44 of file adxl345_params.h.

◆ ADXL345_PARAM_RATE

#define ADXL345_PARAM_RATE   (ADXL345_RATE_200HZ)

Definition at line 41 of file adxl345_params.h.

◆ ADXL345_PARAMS

#define ADXL345_PARAMS
Value:
{ .i2c = ADXL345_PARAM_I2C, \
.addr = ADXL345_PARAM_ADDR, \
.offset = ADXL345_PARAM_OFFSET, \
.range = ADXL345_PARAM_RANGE, \
.rate = ADXL345_PARAM_RATE, \
.full_res = ADXL345_PARAM_FULL_RES }

Definition at line 58 of file adxl345_params.h.

◆ ADXL345_SAUL_INFO

#define ADXL345_SAUL_INFO   { .name = "adxl345" }

Definition at line 66 of file adxl345_params.h.

Variable Documentation

◆ adxl345_params

const adxl345_params_t adxl345_params[]
static
Initial value:
=
{
ADXL345_PARAMS
}

ADXL345 configuration.

Definition at line 73 of file adxl345_params.h.

◆ adxl345_saul_info

const saul_reg_info_t adxl345_saul_info[]
static
Initial value:
=
{
ADXL345_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 81 of file adxl345_params.h.