| поискавой системы для электроныых деталей |
|
CFA633-RDI-KS датащи(PDF) 38 Page - Crystalfontz America, Inc. |
|
|
|||||||||||||||||||||||||||||
CFA633-RDI-KS датащи(HTML) 38 Page - Crystalfontz America, Inc. |
|
38 / 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 38 The following C function will decode the Temperature Sensor Report packet into °C and °F: void OnReceivedTempReport(COMMAND_PACKET *packet, char *output) { //First check the DOW CRC return code from the CFA633 if(packet->data[3]==0) strcpy(output,"BAD CRC"); else { double degc; degc=(*(short *)&(packet->data[1]))/16.0; double degf; degf=(degc*9.0)/5.0+32.0; sprintf(output,"%9.4f°C =%9.4f°F", degc, degf); } } COMMAND CODES Below is a list of valid commands for the CFA633. Each command packet is answered by either a response packet or an error packet.The low 6 bits of the type field of the response or error packet is the same as the low 6 bits of the type field of the command packet being acknowledged. 0 (0x00): Ping Command The CFA633 will return the Ping Command to the host. type: 0x00 = 010 valid data_length is 0 to 16 data[0-(data_length-1)] can be filled with any arbitrary data The return packet is identical to the packet sent, except the type will be 0x40 (normal response, Ping Command): type: 0x40 | 0x00 = 0x40 = 6410 data_length = (identical to received packet) data[0-(data_length-1)] = (identical to received packet) 1 (0x01): Get Hardware & Firmware Version The CFA633 will return the hardware and firmware version information to the host. type: 0x01 = 110 valid data_length is 0 The return packet will be: type: 0x40 | 0x01 = 0x41 = 6510 data_length = 16 data[] = "CFA633:h#.#,y#v#" X.X is the hardware revision, "h2.0" for example Y.Y is the firmware version, "s2v1" for example 2 (0x02): Write User Flash Area The CFA633 reserves 16 bytes of nonvolatile memory for arbitrary use by the host. This memory can be used to store a serial number, IP address, gateway address, netmask, or any other data required. All 16 bytes must be supplied. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |