Crate fusion_imu_sys

Source
Expand description

§fusion-imu-sys

This library provides generated Rust bindings to the Fusion AHRS C library.

You probably want to use the idiomatic wrappers in fusion-imu instead.

Structs§

FusionAhrs
@brief AHRS algorithm structure. Structure members are used internally and must not be accessed by the application.
FusionAhrsFlags
@brief AHRS algorithm flags.
FusionAhrsInternalStates
@brief AHRS algorithm internal states.
FusionAhrsSettings
@brief AHRS algorithm settings.
FusionEuler__bindgen_ty_1
FusionMatrix__bindgen_ty_1
FusionOffset
@brief Gyroscope offset algorithm structure. Structure members are used internally and must not be accessed by the application.
FusionQuaternion__bindgen_ty_1
FusionVector__bindgen_ty_1
__fsid_t

Constants§

FP_INFINITE
FP_NAN
FP_NORMAL
FP_SUBNORMAL
FP_ZERO
FusionAxesAlignment_FusionAxesAlignmentNXNYPZ
FusionAxesAlignment_FusionAxesAlignmentNXNZNY
FusionAxesAlignment_FusionAxesAlignmentNXPYNZ
FusionAxesAlignment_FusionAxesAlignmentNXPZPY
FusionAxesAlignment_FusionAxesAlignmentNYNXNZ
FusionAxesAlignment_FusionAxesAlignmentNYNZPX
FusionAxesAlignment_FusionAxesAlignmentNYPXPZ
FusionAxesAlignment_FusionAxesAlignmentNYPZNX
FusionAxesAlignment_FusionAxesAlignmentNZNXPY
FusionAxesAlignment_FusionAxesAlignmentNZNYNX
FusionAxesAlignment_FusionAxesAlignmentNZPXNY
FusionAxesAlignment_FusionAxesAlignmentNZPYPX
FusionAxesAlignment_FusionAxesAlignmentPXNYNZ
FusionAxesAlignment_FusionAxesAlignmentPXNZPY
FusionAxesAlignment_FusionAxesAlignmentPXPYPZ
FusionAxesAlignment_FusionAxesAlignmentPXPZNY
FusionAxesAlignment_FusionAxesAlignmentPYNXPZ
FusionAxesAlignment_FusionAxesAlignmentPYNZNX
FusionAxesAlignment_FusionAxesAlignmentPYPXNZ
FusionAxesAlignment_FusionAxesAlignmentPYPZPX
FusionAxesAlignment_FusionAxesAlignmentPZNXNY
FusionAxesAlignment_FusionAxesAlignmentPZNYPX
FusionAxesAlignment_FusionAxesAlignmentPZPXPY
FusionAxesAlignment_FusionAxesAlignmentPZPYNX
FusionConvention_FusionConventionEnu
FusionConvention_FusionConventionNed
FusionConvention_FusionConventionNwu
INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
MATH_ERREXCEPT
MATH_ERRNO
M_1_PI
M_2_PI
M_2_SQRTPI
M_E
M_LN2
M_LN10
M_LOG2E
M_LOG10E
M_PI
M_PI_2
M_PI_4
M_SQRT2
M_SQRT1_2
PTRDIFF_MAX
PTRDIFF_MIN
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_LIBM_SIMD_DECL_STUBS_H
_BITS_STDINT_INTN_H
_BITS_STDINT_LEAST_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_MATH_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_SYS_CDEFS_H
__FD_SETSIZE
__FP_LOGB0_IS_MIN
__FP_LOGBNAN_IS_MIN
__GLIBC_MINOR__
__GLIBC_USE_C2X_STRTOL
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C2X
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2X
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_DISTINCT_FLOAT16
__HAVE_DISTINCT_FLOAT32
__HAVE_DISTINCT_FLOAT64
__HAVE_DISTINCT_FLOAT32X
__HAVE_DISTINCT_FLOAT64X
__HAVE_DISTINCT_FLOAT128
__HAVE_DISTINCT_FLOAT128X
__HAVE_FLOAT16
__HAVE_FLOAT32
__HAVE_FLOAT64
__HAVE_FLOAT32X
__HAVE_FLOAT64X
__HAVE_FLOAT64X_LONG_DOUBLE
__HAVE_FLOAT128
__HAVE_FLOAT128X
__HAVE_FLOATN_NOT_TYPEDEF
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__MATH_DECLARE_LDOUBLE
__MATH_DECLARING_DOUBLE
__MATH_DECLARING_FLOATN
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_IEC_60559_BFP__
__STDC_IEC_60559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__bool_true_false_are_defined
__glibc_c99_flexarr_available
false_
math_errhandling
true_

Statics§

signgam

Functions§

FusionAhrsGetEarthAcceleration
FusionAhrsGetFlags
FusionAhrsGetInternalStates
FusionAhrsGetLinearAcceleration
FusionAhrsGetQuaternion
FusionAhrsInitialise
FusionAhrsReset
FusionAhrsSetHeading
FusionAhrsSetQuaternion
FusionAhrsSetSettings
FusionAhrsUpdate
FusionAhrsUpdateExternalHeading
FusionAhrsUpdateNoMagnetometer
FusionAsin
@brief Returns the arc sine of the value. @param value Value. @return Arc sine of the value.
FusionAxesSwap
@brief Swaps sensor axes for alignment with the body axes. @param sensor Sensor axes. @param alignment Axes alignment. @return Sensor axes aligned with the body axes.
FusionCalibrationInertial
@brief Gyroscope and accelerometer calibration model. @param uncalibrated Uncalibrated measurement. @param misalignment Misalignment matrix. @param sensitivity Sensitivity. @param offset Offset. @return Calibrated measurement.
FusionCalibrationMagnetic
@brief Magnetometer calibration model. @param uncalibrated Uncalibrated measurement. @param softIronMatrix Soft-iron matrix. @param hardIronOffset Hard-iron offset. @return Calibrated measurement.
FusionCompassCalculateHeading
FusionDegreesToRadians
@brief Converts degrees to radians. @param degrees Degrees. @return Radians.
FusionFastInverseSqrt
@brief Calculates the reciprocal of the square root. See https://pizer.wordpress.com/2008/10/12/fast-inverse-square-root/ @param x Operand. @return Reciprocal of the square root of x.
FusionMatrixMultiplyVector
@brief Returns the multiplication of a matrix with a vector. @param matrix Matrix. @param vector Vector. @return Multiplication of a matrix with a vector.
FusionOffsetInitialise
FusionOffsetUpdate
FusionQuaternionAdd
@brief Returns the sum of two quaternions. @param quaternionA Quaternion A. @param quaternionB Quaternion B. @return Sum of two quaternions.
FusionQuaternionMultiply
@brief Returns the multiplication of two quaternions. @param quaternionA Quaternion A (to be post-multiplied). @param quaternionB Quaternion B (to be pre-multiplied). @return Multiplication of two quaternions.
FusionQuaternionMultiplyVector
@brief Returns the multiplication of a quaternion with a vector. This is a normal quaternion multiplication where the vector is treated a quaternion with a W element value of zero. The quaternion is post- multiplied by the vector. @param quaternion Quaternion. @param vector Vector. @return Multiplication of a quaternion with a vector.
FusionQuaternionNormalise
@brief Returns the normalised quaternion. @param quaternion Quaternion. @return Normalised quaternion.
FusionQuaternionToEuler
@brief Converts a quaternion to ZYX Euler angles in degrees. @param quaternion Quaternion. @return Euler angles in degrees.
FusionQuaternionToMatrix
@brief Converts a quaternion to a rotation matrix. @param quaternion Quaternion. @return Rotation matrix.
FusionRadiansToDegrees
@brief Converts radians to degrees. @param radians Radians. @return Degrees.
FusionVectorAdd
@brief Returns the sum of two vectors. @param vectorA Vector A. @param vectorB Vector B. @return Sum of two vectors.
FusionVectorCrossProduct
@brief Returns the cross product. @param vectorA Vector A. @param vectorB Vector B. @return Cross product.
FusionVectorDotProduct
@brief Returns the dot product. @param vectorA Vector A. @param vectorB Vector B. @return Dot product.
FusionVectorHadamardProduct
@brief Calculates the Hadamard product (element-wise multiplication). @param vectorA Vector A. @param vectorB Vector B. @return Hadamard product.
FusionVectorIsZero
@brief Returns true if the vector is zero. @param vector Vector. @return True if the vector is zero.
FusionVectorMagnitude
@brief Returns the vector magnitude. @param vector Vector. @return Vector magnitude.
FusionVectorMagnitudeSquared
@brief Returns the vector magnitude squared. @param vector Vector. @return Vector magnitude squared.
FusionVectorMultiplyScalar
@brief Returns the multiplication of a vector by a scalar. @param vector Vector. @param scalar Scalar. @return Multiplication of a vector by a scalar.
FusionVectorNormalise
@brief Returns the normalised vector. @param vector Vector. @return Normalised vector.
FusionVectorSubtract
@brief Returns vector B subtracted from vector A. @param vectorA Vector A. @param vectorB Vector B. @return Vector B subtracted from vector A.
FusionVectorSum
@brief Returns the sum of the elements. @param vector Vector. @return Sum of the elements.
__acos
__acosf
__acosh
__acoshf
__acoshl
__acosl
__asin
__asinf
__asinh
__asinhf
__asinhl
__asinl
__atan
__atan2
__atan2f
__atan2l
__atanf
__atanh
__atanhf
__atanhl
__atanl
__cbrt
__cbrtf
__cbrtl
__ceil
__ceilf
__ceill
__copysign
__copysignf
__copysignl
__cos
__cosf
__cosh
__coshf
__coshl
__cosl
__drem
__dremf
__dreml
__erf
__erfc
__erfcf
__erfcl
__erff
__erfl
__exp
__exp2
__exp2f
__exp2l
__expf
__expl
__expm1
__expm1f
__expm1l
__fabs
__fabsf
__fabsl
__fdim
__fdimf
__fdiml
__finite
__finitef
__finitel
__floor
__floorf
__floorl
__fma
__fmaf
__fmal
__fmax
__fmaxf
__fmaxl
__fmin
__fminf
__fminl
__fmod
__fmodf
__fmodl
__fpclassify
__fpclassifyf
__fpclassifyl
__frexp
__frexpf
__frexpl
__gamma
__gammaf
__gammal
__hypot
__hypotf
__hypotl
__ilogb
__ilogbf
__ilogbl
__iseqsig
__iseqsigf
__iseqsigl
__isinf
__isinff
__isinfl
__isnan
__isnanf
__isnanl
__issignaling
__issignalingf
__issignalingl
__j0
__j0f
__j0l
__j1
__j1f
__j1l
__jn
__jnf
__jnl
__ldexp
__ldexpf
__ldexpl
__lgamma
__lgamma_r
__lgammaf
__lgammaf_r
__lgammal
__lgammal_r
__llrint
__llrintf
__llrintl
__llround
__llroundf
__llroundl
__log
__log2
__log1p
__log1pf
__log1pl
__log2f
__log2l
__log10
__log10f
__log10l
__logb
__logbf
__logbl
__logf
__logl
__lrint
__lrintf
__lrintl
__lround
__lroundf
__lroundl
__modf
__modff
__modfl
__nan
__nanf
__nanl
__nearbyint
__nearbyintf
__nearbyintl
__nextafter
__nextafterf
__nextafterl
__nexttoward
__nexttowardf
__nexttowardl
__pow
__powf
__powl
__remainder
__remainderf
__remainderl
__remquo
__remquof
__remquol
__rint
__rintf
__rintl
__round
__roundf
__roundl
__scalb
__scalbf
__scalbl
__scalbln
__scalblnf
__scalblnl
__scalbn
__scalbnf
__scalbnl
__signbit
__signbitf
__signbitl
__significand
__significandf
__significandl
__sin
__sinf
__sinh
__sinhf
__sinhl
__sinl
__sqrt
__sqrtf
__sqrtl
__tan
__tanf
__tanh
__tanhf
__tanhl
__tanl
__tgamma
__tgammaf
__tgammal
__trunc
__truncf
__truncl
__y0
__y0f
__y0l
__y1
__y1f
__y1l
__yn
__ynf
__ynl
acos
acosf
acosh
acoshf
acoshl
acosl
asin
asinf
asinh
asinhf
asinhl
asinl
atan
atan2
atan2f
atan2l
atanf
atanh
atanhf
atanhl
atanl
cbrt
cbrtf
cbrtl
ceil
ceilf
ceill
copysign
copysignf
copysignl
cos
cosf
cosh
coshf
coshl
cosl
drem
dremf
dreml
erf
erfc
erfcf
erfcl
erff
erfl
exp
exp2
exp2f
exp2l
expf
expl
expm1
expm1f
expm1l
fabs
fabsf
fabsl
fdim
fdimf
fdiml
finite
finitef
finitel
floor
floorf
floorl
fma
fmaf
fmal
fmax
fmaxf
fmaxl
fmin
fminf
fminl
fmod
fmodf
fmodl
frexp
frexpf
frexpl
gamma
gammaf
gammal
hypot
hypotf
hypotl
ilogb
ilogbf
ilogbl
isinf
isinff
isinfl
isnan
isnanf
isnanl
j0
j0f
j0l
j1
j1f
j1l
jn
jnf
jnl
ldexp
ldexpf
ldexpl
lgamma
lgamma_r
lgammaf
lgammaf_r
lgammal
lgammal_r
llrint
llrintf
llrintl
llround
llroundf
llroundl
log
log2
log1p
log1pf
log1pl
log2f
log2l
log10
log10f
log10l
logb
logbf
logbl
logf
logl
lrint
lrintf
lrintl
lround
lroundf
lroundl
modf
modff
modfl
nan
nanf
nanl
nearbyint
nearbyintf
nearbyintl
nextafter
nextafterf
nextafterl
nexttoward
nexttowardf
nexttowardl
pow
powf
powl
remainder
remainderf
remainderl
remquo
remquof
remquol
rint
rintf
rintl
round
roundf
roundl
scalb
scalbf
scalbl
scalbln
scalblnf
scalblnl
scalbn
scalbnf
scalbnl
significand
significandf
significandl
sin
sinf
sinh
sinhf
sinhl
sinl
sqrt
sqrtf
sqrtl
tan
tanf
tanh
tanhf
tanhl
tanl
tgamma
tgammaf
tgammal
trunc
truncf
truncl
y0
y0f
y0l
y1
y1f
y1l
yn
ynf
ynl

Type Aliases§

FusionAxesAlignment
@brief Axes alignment describing the sensor axes relative to the body axes. For example, if the body X axis is aligned with the sensor Y axis and the body Y axis is aligned with sensor X axis but pointing the opposite direction then alignment is +Y-X+Z.
FusionConvention
@brief Earth axes convention.
_Float32
_Float64
_Float32x
_Float64x
__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
_bindgen_ty_1
double_t
float_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t

Unions§

FusionEuler
@brief Euler angles. Roll, pitch, and yaw correspond to rotations around X, Y, and Z respectively.
FusionMatrix
@brief 3x3 matrix in row-major order. See http://en.wikipedia.org/wiki/Row-major_order
FusionQuaternion
@brief Quaternion.
FusionVector
@brief 3D vector.