David Jung
/
MAX32664C_MAXM86146_Mode1_Optical
Mode1 Optical Validation
Diff: main.cpp
- Revision:
- 40:b32b644797ba
- Parent:
- 39:2f2788876776
- Child:
- 41:950ace6b4ce9
--- a/main.cpp Wed Apr 06 02:44:10 2022 +0000 +++ b/main.cpp Wed Apr 06 03:19:03 2022 +0000 @@ -37,7 +37,7 @@ /****************************************************************************** * https://os.mbed.com/users/phonemacro/code/MAX32664C_Example_Host_Code * Tera Term output is set to 115200 baud rate. -* ver: 220401 +* ver: 220405 ******************************************************************************/ /****************************************************************************** @@ -84,8 +84,8 @@ #endif /*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*/ -#define RAW // define this if you want AFE+accel data, no algorithm -//#define ALGO_ONLY 1 // define this if you only want algo data, comment out if you want raw sensor+algo data +//#define RAW // define this if you want AFE+accel data, no algorithm +#define ALGO_ONLY 1 // define this if you only want algo data, comment out if you want raw sensor+algo data // Comment out both of the below for Normal Algorithm Samples Format //#define EXTENDED_ALGO 1 // define this if you want the extended algo samples report format @@ -116,7 +116,9 @@ #elif defined(PACKED_NORMAL_ALGO) #define ALGO_SZ 16 // 16 bytes, packed algo normal size for 33.31.31 #else - #define ALGO_SZ 20 // 20 bytes, normal algo size for 3x.12.0 + // TEST SCD +// #define ALGO_SZ 20 // 20 bytes, normal algo size for 3x.12.0 + #define ALGO_SZ 1 // 20 bytes, normal algo size for 3x.12.0 #endif #else #ifdef EXTENDED_ALGO @@ -797,6 +799,9 @@ #else cmd[0] = 0x52; cmd[1] = 0x07; cmd[2] = 0x01; #endif +//TEST SCD + + cmd[0] = 0x52; cmd[1] = 0x07; cmd[2] = 0x03; sh_i2c.write(SH_ADDR, cmd, 3); mfio = 1; thread_sleep_for(465);