oneWireDriver.h 484 B

123456789101112131415161718192021222324
  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 us_delay(uint16_t delay);
  10. void init_gpio_pin(void);
  11. void gpio_set_input(void);
  12. void gpio_set_output(void);
  13. int readInput();
  14. void writeBitHigh();
  15. void writeBitLow();
  16. void writeSlot(uint8_t data);
  17. uint8_t readSlot(void);
  18. void writeByte(uint8_t data);
  19. uint8_t readByte(void);
  20. uint8_t oneWire_init(void);
  21. #endif /* INC_ONEWIREDRIVER_H_ */