DS18B20.h 396 B

1234567891011121314151617181920212223
  1. #ifndef __Ds18b20_H_
  2. #define __Ds18b20_H_
  3. #include "main.h"
  4. typedef struct
  5. {
  6. uint8_t (*Init)(void);
  7. void (*ReadID)(uint8_t*);
  8. float (*GetTemp_SkipRom)(void);
  9. float (*GetTemp_MatchRom)(uint8_t*);
  10. }DS18B20_t;
  11. /* extern variables ------------------------------------------------*/
  12. extern DS18B20_t DS18B20;
  13. /* extern function prototypes --------------------------------------*/
  14. #endif