/* Gets a whole set of accel data including data, accuracy and timestamp.  */
void inv_get_accel_set(long *data, int8_t *accuracy, inv_time_t *timestamp)
/* Gets a whole set of accel data including data, accuracy and timestamp.  */
void inv_get_accel_set(long *data, int8_t *accuracy, inv_time_t *timestamp)
{
    if (data != NULL) {
        memcpy(data, sensors.accel.calibrated, sizeof(sensors.accel.calibrated));
    }
    if (timestamp != NULL) {
        *timestamp = sensors.accel.timestamp;
    }
    if (accuracy != NULL) {
        *accuracy = sensors.accel.accuracy;
    }
}