| 数据搜索系统,热门电子元器件搜索 |
|
CFA633-RDI-KS 数据表(PDF) 37 Page - Crystalfontz America, Inc. |
|
|
|||||||||||||||||||||||||||||
CFA633-RDI-KS 数据表(HTML) 37 Page - Crystalfontz America, Inc. |
|
37 / 88 page ![]() Crystalfontz America, Inc. Data Sheet Release Date 2012/02/21 www.crystalfontz.com CFA633-RDI-KS LCD Module (Hardware v2.0 / Firmware s2v1) February 2012 Page 37 The following C function will decode the fan speed from a Fan Speed Report packet into RPM: int OnReceivedFanReport(COMMAND_PACKET *packet, char * output) { int return_value; return_value=0; int number_of_fan_tach_cycles; number_of_fan_tach_cycles=packet->data[1]; if(number_of_fan_tach_cycles<3) sprintf(output," STOP"); else if(number_of_fan_tach_cycles<4) sprintf(output," SLOW"); else if(0xFF==number_of_fan_tach_cycles) sprintf(output," ----"); else { //Specific to each fan, most commonly 2 int pulses_per_revolution; pulses_per_revolution=2; int Fan_Timer_Ticks; Fan_Timer_Ticks=(*(unsigned short *)(&(packet->data[2]))); return_value=((27692308L/pulses_per_revolution)* (unsigned long)(number_of_fan_tach_cycles-3))/ (Fan_Timer_Ticks); sprintf(output,"%5d",return_value); } return(return_value); } 0x82: Temperature Sensor Report If any of the up to 32 temperature sensors is configured to report to the host, the CFA633 will send Temperature Sensor Reports for each selected sensor every second. See the command 19 (0x13): Set Up Temperature Reporting (Pg. 48). type = 0x82 data_length = 4 data[0] is the index of the temperature sensor being reported: 0 = temperature sensor 1 1 = temperature sensor 2 . . . 31 = temperature sensor 32 data[1] is the MSB of Temperature_Sensor_Counts data[2] is the LSB of Temperature_Sensor_Counts data[3] is DOW_crc_status |
|
链接网址 |
| 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 |