![Freescale Semiconductor FXTH87 11 Series Firmware User Manual Download Page 25](http://html.mh-extra.com/html/freescale-semiconductor/fxth87-11-series/fxth87-11-series_firmware-user-manual_2330494025.webp)
Firmware Functions
FXTH87xx11 and FXTH87xx12 Embedded Firmware User Guide, Rev. 2.1
Freescale Semiconductor, Inc.
25
— UINT8* u8OffsetX: Pointer to initial offset level to load into SMI according to
updated offset value is returned at the end of the function.
— UINT8* u8OffsetZ: Pointer to initial offset level to load into SMI according to
updated offset value is returned at the end of the function.
— UINT16* Pointer to the Universal Uncompensated Measurement Array. Uncompensated
acceleration for both axes will be updated accordingly.
•
Returns
:
— UINT8 u8Status: Refer to TPMS_READ_ACCELERATION_Z for more information on the
format of this status byte.
3.2.16
UINT8 TPMS_COMP_ACCELERATION_XZ(UINT16 *u16CompAccel,
UINT16* u16UUMA)
•
Description:
This function internally calls TPMS_COMP_ACCELERATION_X followed by
TPMS_COMP_ACCELERATION_Z. It places the compensated results in a 2-word array. For
more information, refer to the functions afore mentioned.
•
Stack size:
60 bytes
•
Approx. Duration:
1910 usec
•
Power Management:
This function executes entirely in RUN mode.
•
Interrupt Management:
This function does not await interrupts. It is not affected by interrupts
either.
•
Resources:
UUMA
•
Input Parameters:
— UINT16 *u16CompAccel: Updated 9-bit compensated X-axis acceleration followed by Z-axis
acceleration.
— UINT16 *u16UUMA: Pointer to Universal Uncompensated Measurement Array (as described
). Uncompensated voltage, temperature and acceleration will be taken from this
array.
•
Returns
:
— UINT8 u8Status: Valid error flags/outputs are described in
Table 20. Valid output conditions for TPMS_COMP_ACCELERATION_XZ
u8Status Value
Measurement Value
Condition
$01
$01FE
Compensated acceleration reading outside of valid range (high).
$01
$0001
Compensated acceleration reading outside of valid range (low).
$21
$01FE
Compensated pressure reading outside of valid range (high), and uncompensated
voltage suspected to be below valid operating range for this function.
$21
$0001
Compensated pressure reading outside of valid range (low), and uncompensated
voltage suspected to be under below operating range for this function.
$20
Between $0001 - $01FE
Uncompensated voltage suspected to be below valid operating range for this
function; The compensated reading is not guaranteed for accuracy.
$00
Between $0001 - $01FE Valid compensated acceleration reading.