Bosch 14-bit Axis Data Format.
The BMA180 stores 2's-complement 14-bit axis data samples split across two contiguous 8-bit device locations where the lower address in the device register space stores the 6 least significant bits and the next higher address stores the 8 most significant bits of the axis data.
#include <bma_axis.inc.h>
Data Fields | |
struct { | |
uint16_t acc_lsb: 6 | |
int16_t acc_msb: 8 | |
uint16_t new_data: 1 | |
uint16_t unused: 1 | |
} | field |
int16_t | word |
uint16_t bma_axis14_t::acc_lsb |
Referenced by bma_axis14_val().
int16_t bma_axis14_t::acc_msb |
Referenced by bma_axis14_val().
struct { ... } bma_axis14_t::field |
Referenced by bma_axis14_val().
uint16_t bma_axis14_t::new_data |
uint16_t bma_axis14_t::unused |
int16_t bma_axis14_t::word |
Referenced by bma_axis14_val().