Advertisement
Guest User

Untitled

a guest
Jul 20th, 2013
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. /*
  2.    Plik ds1820.h
  3. */
  4.  
  5. #ifndef DS1820_H
  6. #define DS1820_H
  7.  
  8. #define SET_ONEWIRE_PORT     PORTB  |=  _BV(1)
  9. #define CLR_ONEWIRE_PORT     PORTB  &= ~_BV(1)
  10. #define IS_SET_ONEWIRE_PIN   PINB   &   _BV(1)
  11. #define SET_OUT_ONEWIRE_DDR  DDRB   |=  _BV(1)
  12. #define SET_IN_ONEWIRE_DDR   DDRB   &= ~_BV(1)
  13.  
  14. unsigned char ds1820_ConvertT(void);
  15. int ds1820_Read(unsigned char []);
  16. void OneWireStrong(char);
  17. unsigned char OneWireReset(void);
  18. void OneWireWriteByte(unsigned char);
  19. unsigned char OneWireReadByte(void);
  20.  
  21. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement