|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
58 c->drdy_int_enable =
false;
61 c->justify_msb =
false;
63 c->spi_3_wire =
false;
71 return ((
c->self_test << 7) | (
c->spi_3_wire << 6) | (
c->int_invert << 5) |
72 (
c->full_res << 3) | (
c->justify_msb << 2) | (
c->range));
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
bool justify_msb
justify: FALSE: right with sign-extension, TRUE: MSB (left)
enum Adxl345Ranges range
g Range
bool drdy_int_enable
Enable Data Ready Interrupt.
bool spi_3_wire
Set 3-wire SPI mode, if FALSE: 4-wire SPI mode.
enum Adxl345Rates rate
Data Output Rate.
bool self_test
Enable self-test-force causing shift in output data.
Adxl345Rates
Selectable data rates in ADXL345_REG_BW_RATE bandwith is always half of data rate.
bool full_res
Full Resolution: FALSE: 10bit, TRUE: full with 4mg/LSB.
static void adxl345_set_default_config(struct Adxl345Config *c)
bool int_invert
Invert Interrupt FALSE: active high, TRUE: active low.
static uint8_t adxl345_data_format(struct Adxl345Config *c)
Adxl345Ranges
Selectable range in ADXL345_REG_DATA_FORMAT.