Atmel Software Framework

kxtf9_axis_t Union Reference

KXTF9 Axis Data Format.

The 2's-complement 12-bit axis data samples split across two contiguous 8-bit device locations where the lower address in the device register space stores the 4 least significant bits (in bits 4:7) and the next higher address stores the 8 most significant bits of the axis data.

Data Fields

struct {
   uint8_t   lsb
 
   int8_t   msb
 
byte
 
struct {
   uint16_t   acc_lsb: 4
 
   int16_t   acc_msb: 8
 
   uint16_t   unused: 4
 
field
 
int16_t word
 

uint16_t kxtf9_axis_t::acc_lsb

Referenced by kxtf9_axis_val().

int16_t kxtf9_axis_t::acc_msb

Referenced by kxtf9_axis_val().

struct { ... } kxtf9_axis_t::byte
struct { ... } kxtf9_axis_t::field

Referenced by kxtf9_axis_val().

uint8_t kxtf9_axis_t::lsb
int8_t kxtf9_axis_t::msb
uint16_t kxtf9_axis_t::unused
int16_t kxtf9_axis_t::word

Referenced by kxtf9_axis_val().