sx9311/sx9325:New log requirement for SAR sensor

WHY:Need print value of CS3
HOW:Add debug channel number

Change-Id: Icedda92edaad8a826094d5d638b3b988c5b9b513
Signed-off-by: wunan3 <wunan3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1246425
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
This commit is contained in:
wunan3 2018-09-26 10:03:51 +08:00 • committed by Nan Wu
commit 6713bcc1e8
4 changed files with 8 additions and 2 deletions

View file

@ -277,7 +277,7 @@ static void read_rawData(psx93XX_t this)
s32 diff;
u16 offset;
if(this){
for(csx =0; csx<USE_CHANNEL_NUM; csx++){
for(csx =0; csx<DEBUG_CHANNEL_NUM; csx++){
write_register(this,SX9310_CPSRD,csx);//here to check the CS1, also can read other channel
read_register(this,SX9310_USEMSB,&msb);
read_register(this,SX9310_USELSB,&lsb);

View file

@ -278,7 +278,7 @@ static void read_rawData(psx93XX_t this)
s32 diff;
u16 offset;
if(this){
for(csx =0; csx<USE_CHANNEL_NUM; csx++){
for(csx =0; csx<DEBUG_CHANNEL_NUM; csx++){
write_register(this,SX932x_CPSRD,csx);//here to check the CS1, also can read other channel
read_register(this,SX932x_USEMSB,&msb);
read_register(this,SX932x_USELSB,&lsb);

View file

@ -91,6 +91,9 @@
/* useful channel number */
#define USE_CHANNEL_NUM 3
/* channel number need to debug */
#define DEBUG_CHANNEL_NUM 4
/* default settings */
/* Channel enable: CS0:1,CS1:2,CS2:4,COMB:8
* Defines the Active scan period :

View file

@ -128,6 +128,9 @@
/* useful channel number */
#define USE_CHANNEL_NUM 3
/* channel number need to debug */
#define DEBUG_CHANNEL_NUM 4
/* default settings */
/* Channel enable: CS0:1,CS1:2,CS2:4,COMB:8
* Defines the Active scan period :