RDAIRPABPSI5UG , Rev. 2.0
Freescale Semiconductor
35
Installing the Software and Setting up the Hardware
•
Acc_Y_OffsetOverRange - the offset monitor over range flag is set if the acceleration signal of the Y axis reaches
the specified offset limit
•
Acc_SpiMisoError - the MISO data mismatch flag is set when a MISO Data mismatch fault occurs
•
Acc_DeviceInitFlag - the device initialization flag is set during the interval between negation of internal reset and
completion of internal device initialization
•
Acc_SigmaDeltaOverRange - the sigma delta modulator over range flag is set if the sigma delta modulator for either
axis becomes saturated
•
Acc_InterDataError - the internal data error flag is set if a customer or OTP register data CRC fault or other internal
fault is detected
•
Acc_FuseWarning - the fuse warn bit is set if a marginally programmed fuse is detected
•
Acc_InitEnd - the ENDINIT bit is a control bit use to indicate that the user has completed all device and system level
initialization tests, and that Mesquite will operate in normal mode
•
Acc_SignData - this parameter determines the format of acceleration data results
•
Acc_OffsetMoni - offset monitor circuit is enable/disable
•
Acc_ArmOutput - the ARM Configuration type select the mode of operation for the ARM_X/PCM_X,
ARM_Y/PCM_Y pins
•
Acc_XAxisSelfTest - enable or disable the self-test circuitry for X axis
•
Acc_YAxisSelfTest - enable or disable the self-test circuitry for Y axis
•
Acc_XLowPassFilter - the low pass filter selection bits independently select a low-pass filter for X axis
•
Acc_YLowPassFilter - the low pass filter selection bits independently select a low-pass filter for Y axis
•
Acc_XArmPulseStretch - pulse stretch time for X arming outputs
•
Acc_YArmPulseStretch - pulse stretch time for Y arming outputs
•
Acc_XArm_PosWin_CountLimit - X axis positive arming window size definitions or arming count limit definitions
function (depending on the state of the Acc_ArmOutput variable)
•
Acc_YArm_PosWin_CountLimit - Y axis positive arming window size definitions or arming count limit definitions
function (depending on the state of the Acc_ArmOutput variable)
•
Acc_Arm_XNegWinSize - X axis negative arming window size definitions (meaning depend on the state of the
Acc_ArmOutput variable)
•
Acc_Arm_YNegWinSize - Y axis negative arming window size definitions (meaning depend on the state of the
Acc_ArmOutput variable)
•
Acc_XArmPositiveThreshold - this value contain the X axis positive threshold to be used by the arming function
•
Acc_YArmPositiveThreshold - this value contain the Y axis positive threshold to be used by the arming function
•
Acc_XArmNegativeThreshold - this value contain the X axis negative thresholds to be used by the arming function
•
Acc_YArmNegativeThreshold - this value contain the Y axis negative thresholds to be used by the arming function
•
Acc_CountValue - value in the register increases by one count every 128 us
and the counter rolls over every
32.768 ms
•
Acc_XOffsetCorrection - the most recent X axis offset correction increment/decrement value from the offset
cancellation
•
Acc_YOffsetCorrection - the most recent Y axis offset correction increment/decrement value from the offset
cancellation circuit
Parameters of the Acc_GetAccelData API function:
•
Spi_Channel (Acc_SpiChannelType) - logical SPI channel number (not physical SPI channel)
•
AccelCmdX (Acc_XAccelerationDataType) - X axis acceleration data request
•
AccelCmdY (Acc_YAccelerationDataType) - Y axis acceleration data request
•
Status (Acc_AccelStatusType) output data structure containing the accelerometer X/Y moving values and device status:
•
AccelDataX - X axis acceleration data
•
AccelDataY - Y axis acceleration data
•
AccelRespTypeX - type of the X axis acceleration response
•
AccelRespTypeY - type of the Y axis acceleration response
•
Acc_DeviceReset - device reset flag is set during device initialization following a device reset