1661 |
kaklik |
1 |
/********************************************************************* |
|
|
2 |
* |
|
|
3 |
* Thermo Sensor with SPI(TM) Interface |
|
|
4 |
* |
|
|
5 |
********************************************************************* |
|
|
6 |
* FileName: temperature.h |
|
|
7 |
* Dependencies: See INCLUDES section below |
|
|
8 |
* Processor: PIC18 |
|
|
9 |
* Compiler: C18 2.30.01+ |
|
|
10 |
* Company: Microchip Technology, Inc. |
|
|
11 |
* |
|
|
12 |
* Software License Agreement |
|
|
13 |
* |
|
|
14 |
* The software supplied herewith by Microchip Technology Incorporated |
|
|
15 |
* (the Company) for its PICmicro® Microcontroller is intended and |
|
|
16 |
* supplied to you, the Companys customer, for use solely and |
|
|
17 |
* exclusively on Microchip PICmicro Microcontroller products. The |
|
|
18 |
* software is owned by the Company and/or its supplier, and is |
|
|
19 |
* protected under applicable copyright laws. All rights are reserved. |
|
|
20 |
* Any use in violation of the foregoing restrictions may subject the |
|
|
21 |
* user to criminal sanctions under applicable laws, as well as to |
|
|
22 |
* civil liability for the breach of the terms and conditions of this |
|
|
23 |
* license. |
|
|
24 |
* |
|
|
25 |
* THIS SOFTWARE IS PROVIDED IN AN AS IS CONDITION. NO WARRANTIES, |
|
|
26 |
* WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED |
|
|
27 |
* TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
|
|
28 |
* PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, |
|
|
29 |
* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR |
|
|
30 |
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
|
|
31 |
* |
|
|
32 |
********************************************************************/ |
|
|
33 |
|
|
|
34 |
#ifndef TEMPERATURE_H |
|
|
35 |
#define TEMPERATURE_H |
|
|
36 |
|
|
|
37 |
/** E X T E R N S ************************************************************/ |
|
|
38 |
extern WORD_VAL temperature; |
|
|
39 |
extern char tempString[10]; |
|
|
40 |
|
|
|
41 |
/** P U B L I C P R O T O T Y P E S *****************************************/ |
|
|
42 |
void InitTempSensor(void); |
|
|
43 |
BOOL AcquireTemperature(void); |
|
|
44 |
void UpdateCelsiusASCII(void); |
|
|
45 |
#if defined(PIC18F87J50_PIM) |
|
|
46 |
void PollTempOnHPCExplorer(void); |
|
|
47 |
#else |
|
|
48 |
#define PollTempOnHPCExplorer() |
|
|
49 |
#endif |
|
|
50 |
|
|
|
51 |
#endif //TEMPERATURE_H |