初级会员

- 积分
- 95
- 金钱
- 95
- 注册时间
- 2019-5-16
- 在线时间
- 14 小时
|

楼主 |
发表于 2020-3-31 21:06:52
|
显示全部楼层
for(i=0;i<n_ir_buffer_length;i++) { while(MAX30102_INT==1); //wait until the interrupt pin asserts max30102_FIFO_ReadBytes(REG_FIFO_DATA,temp); aun_red_buffer[i] = (long)((long)((long)temp[0]&0x03)<<16) | (long)temp[1]<<8 | (long)temp[2]; // ×éoÏêy¾Y»ñμÃÕæêμêy¾Y aun_ir_buffer[i] = (long)((long)((long)temp[3] & 0x03)<<16) |(long)temp[4]<<8 | (long)temp[5]; // Combine values to get the actual number if(un_min>aun_red_buffer[i]) un_min=aun_red_buffer[i]; //update signal min if(un_max<aun_red_buffer[i]) un_max=aun_red_buffer[i]; //update signal max } |
|