Sensor Data Descriptor.
#include <sensor.h>
Data Fields | |
union { | |
struct { | |
int32_t pitch | |
Pitch-axis value. More... | |
int32_t roll | |
Roll-axis value. More... | |
int32_t yaw | |
Yaw-axis value. More... | |
} angle | |
struct { | |
int32_t x | |
x-axis value More... | |
int32_t y | |
y-axis value More... | |
int32_t z | |
z-axis value More... | |
} axis | |
struct { | |
uint32_t id | |
Device ID. More... | |
uint32_t unused | |
Unused (spare) field. More... | |
uint32_t version | |
Version. More... | |
} device | |
struct { | |
int32_t direction | |
Heading relative to magnetic north. More... | |
int32_t inclination | |
Inclination above/below horizontal. More... | |
int32_t strength | |
Net magnetic field intensity. More... | |
} heading | |
struct { | |
int32_t unused [2] | |
Unused (spare) fields. More... | |
int32_t value | |
Light value. More... | |
} light | |
struct { | |
int32_t unused [2] | |
Unused (spare) fields. More... | |
int32_t value | |
Pressure value. More... | |
} pressure | |
struct { | |
int32_t value [3] | |
Proximity values (3) More... | |
} proximity | |
struct { | |
int32_t axis | |
Tap detection axis (X,Y,Z) More... | |
int32_t count | |
Tap count. More... | |
int32_t direction | |
Tap direction. More... | |
} tap | |
struct { | |
int32_t unused [2] | |
Unused (spare) fields. More... | |
int32_t value | |
Temperature value. More... | |
} temperature | |
int32_t value [3] | |
Generic data name. More... | |
}; | |
bool | scaled |
Data sample format (true => scaled) More... | |
uint32_t | timestamp |
Data sample timestamp. More... | |
union { ... } |
struct { ... } sensor_data_t::angle |
struct { ... } sensor_data_t::axis |
Referenced by ak8975_get_field(), bma020_ioctl(), bma150_ioctl(), bma180_ioctl(), bma220_ioctl(), bma222_ioctl(), bma250_ioctl(), hmc5883l_calibrate(), hmc5883l_get_field(), imu3000_get_rotation(), imu3000_ioctl(), imu3000_isr(), itg3200_get_rotation(), itg3200_ioctl(), itg3200_isr(), kxtf9_get_accel(), kxtf9_ioctl(), main(), and run_sensor_accel_test().
int32_t sensor_data_t::axis |
Tap detection axis (X,Y,Z)
int32_t sensor_data_t::count |
Tap count.
struct { ... } sensor_data_t::device |
Referenced by ak8975_device_id(), bma020_device_id(), bma150_device_id(), bma180_device_id(), bma220_device_id(), bma222_device_id(), bma250_device_id(), bmp_device_id(), hmc5883l_device_id(), hmc5883l_init(), imu3000_device_id(), itg3200_device_id(), kxtf9_device_id(), sensor_device_id(), sfh5712_device_id(), and sfh7770_device_id().
int32_t sensor_data_t::direction |
Heading relative to magnetic north.
Tap direction.
struct { ... } sensor_data_t::heading |
Referenced by ak8975_get_heading(), hmc5883l_get_heading(), main(), and run_sensor_compass_test().
uint32_t sensor_data_t::id |
Device ID.
int32_t sensor_data_t::inclination |
Inclination above/below horizontal.
struct { ... } sensor_data_t::light |
Referenced by main(), sfh5712_get_light(), sfh7770_get_light(), and sfh7770_isr().
int32_t sensor_data_t::pitch |
Pitch-axis value.
struct { ... } sensor_data_t::pressure |
Referenced by bmp_get_pressure(), and main().
struct { ... } sensor_data_t::proximity |
Referenced by main(), sfh7770_get_proximity(), sfh7770_isr(), and test_channels().
int32_t sensor_data_t::roll |
Roll-axis value.
bool sensor_data_t::scaled |
Data sample format (true => scaled)
Referenced by ak8975_get_field(), bma020_ioctl(), bma150_get_temperature(), bma150_ioctl(), bma150_isr(), bma180_get_temperature(), bma180_ioctl(), bma220_ioctl(), bma220_isr(), bma222_get_temperature(), bma222_ioctl(), bma222_isr(), bma250_get_temperature(), bma250_ioctl(), bma250_isr(), bmp_get_pressure(), bmp_get_temperature(), hmc5883l_get_field(), imu3000_get_rotation(), imu3000_get_temperature(), imu3000_ioctl(), imu3000_isr(), itg3200_get_rotation(), itg3200_get_temperature(), itg3200_ioctl(), itg3200_isr(), kxtf9_get_accel(), kxtf9_ioctl(), kxtf9_isr(), main(), run_sensor_accel_test(), run_sensor_compass_test(), run_sensor_gyro_test(), run_sensor_temp_test(), sfh7770_get_proximity(), and sfh7770_isr().
int32_t sensor_data_t::strength |
Net magnetic field intensity.
struct { ... } sensor_data_t::tap |
Referenced by kxtf9_isr().
struct { ... } sensor_data_t::temperature |
uint32_t sensor_data_t::timestamp |
Data sample timestamp.
Referenced by bma150_isr(), bma220_isr(), bma222_isr(), bma250_isr(), imu3000_isr(), itg3200_isr(), kxtf9_isr(), main(), sensor_read(), and sfh7770_isr().
int32_t sensor_data_t::unused[2] |
Unused (spare) fields.
uint32_t sensor_data_t::unused |
Unused (spare) field.
int32_t sensor_data_t::value[3] |
Generic data name.
Proximity values (3)
Light value.
Temperature value.
Pressure value.
Referenced by kxtf9_isr(), read_config(), read_nvconfig(), sensor_get_angle(), set_config_option(), and set_nvconfig_option().
uint32_t sensor_data_t::version |
Version.
int32_t sensor_data_t::x |
x-axis value
int32_t sensor_data_t::y |
y-axis value
int32_t sensor_data_t::yaw |
Yaw-axis value.
int32_t sensor_data_t::z |
z-axis value