| 数据搜索系统,热门电子元器件搜索 |
|
MS8607 数据表(PDF) 10 Page - Humirel |
|
|
|||||||||||||||||||||||||||||
MS8607 数据表(HTML) 10 Page - Humirel |
|
10 / 4 page ![]() MEAS MS8607 DCS FOR ZedBoard Digital Pressure and Humudity Sensor SENSOR SOLUTIONS /// MEAS MS8607 DCS DEVELOPMENT KIT 07/2016 Page 10 printf("CRC Error."); } printf("\n"); usleep( (500-MS8607_OSR_8192_CONV_DELAY_MS)*1000 ); } } // Wait for another key press and then display the main menu again printf("\nPress any key to continue...\n"); read(1, (char*)&key_input, 1); ms8607_main_menu(); }else if(key_input == '7'){ //If the '7' key is pressed // Compute Dew Point from last read Temperature and Relative Humidity values printf("\n"); printf("Computing Dew Point from last read Temperature and Relative Humidity values...\n"); stat = ms8607_compute_dew_point(temperature, relative_humidity, &dew_point); if(stat == ms8607_status_i2c_transfer_error){ printf("Could not read heater status.\n"); }else if(stat == ms8607_status_heater_on_error){ printf("Cannot calculate dew point while heater is on.\n"); }else if(stat == ms8607_status_ok){ printf("Dew Point : %5.2f%cC",dew_point,248); } // Wait for another key press and then display the main menu again printf("\nPress any key to continue...\n"); read(1, (char*)&key_input, 1); ms8607_main_menu(); }else if(key_input == '8'){ //If the '8' key is pressed // Get Battery Status printf("\n"); printf("Getting Battery Status...\n"); stat = ms8607_get_battery_status(&batt_stat); // Display the status returned from the battery status check operation printf("Get Battery Status Check Complete with status: "); if(stat==ms8607_status_ok){ printf("Ok.\n"); printf("Battery "); if(batt_stat == ms8607_battery_ok){ printf("Ok.\n"); }else{ printf("Low.\n"); } } if(stat==ms8607_status_i2c_transfer_error){ printf("Transfer Error.\n"); } // Wait for another key press and then display the main menu again printf("\nPress any key to continue...\n"); read(1, (char*)&key_input, 1); ms8607_main_menu(); }else if(key_input == '9'){ //If the '9' key is pressed // Get Heater Status printf("\n"); printf("Getting Heater Status...\n"); stat = ms8607_get_heater_status(&heat_stat); // Display the status returned from the heater status check operation printf("Get Heater Status Check Complete with status: "); if(stat==ms8607_status_ok){ printf("Ok.\n"); printf("Heater "); if(heat_stat == ms8607_heater_on){ printf("On.\n"); }else{ printf("Off.\n"); } }else if(stat==ms8607_status_i2c_transfer_error) printf("Transfer Error.\n"); // Wait for another key press and then display the main menu again printf("\nPress any key to continue...\n"); read(1, (char*)&key_input, 1); ms8607_main_menu(); }else if(key_input == '0'){ //If the '0' key is pressed // Enable heater printf("\n"); printf("Enabling Heater...\n"); stat = ms8607_enable_heater(); |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |