| 전자부품 데이터시트 검색엔진 |
|
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 |
|
링크 URL |
| 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 |