android13/hardware/rockchip/sensor/st/akm8975/CustomerSpec.h

119 lines
3.5 KiB
C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/******************************************************************************
*
* $Id: CustomerSpec.h 200 2010-03-19 10:25:52Z rikita $
*
* -- Copyright Notice --
*
* Copyright (c) 2009 Asahi Kasei Microdevices Corporation, Japan
* All Rights Reserved.
*
* This software program is proprietary program of Asahi Kasei Microdevices
* Corporation("AKM") licensed to authorized Licensee under Software License
* Agreement (SLA) executed between the Licensee and AKM.
*
* Use of the software by unauthorized third party, or use of the software
* beyond the scope of the SLA is strictly prohibited.
*
* -- End Asahi Kasei Microdevices Copyright Notice --
*
******************************************************************************/
#ifndef AKMD_INC_CUSTOMERSPEC_H
#define AKMD_INC_CUSTOMERSPEC_H
/*******************************************************************************
User defines parameters.
******************************************************************************/
// Certification information
#define CSPEC_CI_AK_DEVICE 8975
#define CSPEC_CI_LICENSER "ASAHIKASEI"
#define CSPEC_CI_LICENSEE "ROCKCHIP-FUZHOU"
// Parameters for Average
// The number of magnetic data block to be averaged.
// NBaveh*(*nh) must be 1, 2, 4, 8 or 16.
#define CSPEC_HNAVE 4
// Parameters for Direction Calculation
#define CSPEC_DVEC_X 0
#define CSPEC_DVEC_Y 0
#define CSPEC_DVEC_Z 0
////////////////////////////////////////
// AK8975
// Formation 0
#define CSPEC_FORM0_HLAYOUT_11 1
#define CSPEC_FORM0_HLAYOUT_12 0
#define CSPEC_FORM0_HLAYOUT_13 0
#define CSPEC_FORM0_HLAYOUT_21 0
#define CSPEC_FORM0_HLAYOUT_22 1
#define CSPEC_FORM0_HLAYOUT_23 0
#define CSPEC_FORM0_HLAYOUT_31 0
#define CSPEC_FORM0_HLAYOUT_32 0
#define CSPEC_FORM0_HLAYOUT_33 1
// Formation 1
#define CSPEC_FORM1_HLAYOUT_11 1
#define CSPEC_FORM1_HLAYOUT_12 0
#define CSPEC_FORM1_HLAYOUT_13 0
#define CSPEC_FORM1_HLAYOUT_21 0
#define CSPEC_FORM1_HLAYOUT_22 1
#define CSPEC_FORM1_HLAYOUT_23 0
#define CSPEC_FORM1_HLAYOUT_31 0
#define CSPEC_FORM1_HLAYOUT_32 0
#define CSPEC_FORM1_HLAYOUT_33 1
// Parameters for Acceleration sensor
// Formation 0
#define CSPEC_FORM0_ALAYOUT_11 1
#define CSPEC_FORM0_ALAYOUT_12 0
#define CSPEC_FORM0_ALAYOUT_13 0
#define CSPEC_FORM0_ALAYOUT_21 0
#define CSPEC_FORM0_ALAYOUT_22 1
#define CSPEC_FORM0_ALAYOUT_23 0
#define CSPEC_FORM0_ALAYOUT_31 0
#define CSPEC_FORM0_ALAYOUT_32 0
#define CSPEC_FORM0_ALAYOUT_33 1
// Formation 1
#define CSPEC_FORM1_ALAYOUT_11 1
#define CSPEC_FORM1_ALAYOUT_12 0
#define CSPEC_FORM1_ALAYOUT_13 0
#define CSPEC_FORM1_ALAYOUT_21 0
#define CSPEC_FORM1_ALAYOUT_22 1
#define CSPEC_FORM1_ALAYOUT_23 0
#define CSPEC_FORM1_ALAYOUT_31 0
#define CSPEC_FORM1_ALAYOUT_32 0
#define CSPEC_FORM1_ALAYOUT_33 1
// measurement time + extra time
#define CSPEC_TIME_MEASUREMENTDRDY 20
// The number of formation
#define CSPEC_NUM_FORMATION 2 // .! : <20><>Ȼ<EFBFBD>ĵ<EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD> macro <20><><EFBFBD><EFBFBD><EFBFBD>ýӿ<C3BD>, <20><><EFBFBD><EFBFBD>ʵ<EFBFBD>ִ<EFBFBD><D6B4><EFBFBD>(<28><> <20><><EFBFBD><EFBFBD> AK8975PRMS, LoadParameters() )<29><><EFBFBD>жԸ<D0B6> macro <20><>Ӳ<EFBFBD><D3B2><EFBFBD><EFBFBD>,
// <20><><EFBFBD><EFBFBD>, "<22><>Ҫ" <20>޸ı<DEB8> macro <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
// the counter of Suspend
#define CSPEC_CNTSUSPEND_SNG 8
// Parameters for FctShipmntTest
// 1 : USE SPI
// 0 : NOT USE SPI(I2C)
#define CSPEC_SPI_USE 0
/*** Deprecate ****************************************************************/
// Set Decimator for HDOEProcess( )
// 8-16Hz : 1
// 20Hz : 2
// 30Hz : 3
// 50Hz : 5
// 100Hz : 10
#define CSPEC_HDECIMATOR_SNG 1
// Default interval
#define CSPEC_INTERVAL_SNG 125000
#endif