oneWireDriver.h 506 B

12345678910111213141516171819202122232425
  1. /*
  2. * oneWireDriver.h
  3. *
  4. * Created on: 1 Feb 2022
  5. * Author: thomaschef
  6. */
  7. #ifndef INC_ONEWIREDRIVER_H_
  8. #define INC_ONEWIREDRIVER_H_
  9. void init_gpio_pin();
  10. void us_delay(uint16_t delay);
  11. void init_gpio_pin(void);
  12. void gpio_set_input(void);
  13. void gpio_set_output(void);
  14. int readInput();
  15. void writeBitHigh();
  16. void writeBitLow();
  17. void writeSlot(uint8_t data);
  18. uint8_t readSlot(void);
  19. void writeByte(uint8_t data);
  20. uint8_t readByte(void);
  21. uint8_t oneWire_init(void);
  22. #endif /* INC_ONEWIREDRIVER_H_ */