/* Returns 3-element vector of accelerometer data in body frame.  */
inv_error_t inv_get_accel(long *data)
/* Returns 3-element vector of accelerometer data in body frame.  */
inv_error_t inv_get_accel(long *data)
{
    if (data != NULL) {
        inv_get_accel_set(data, NULL, NULL);
        return INV_SUCCESS;
    }
    else {
        return INV_ERROR_INVALID_PARAMETER;
    }
}