OneWire.h 400 B

12345678910111213141516
  1. #ifndef UNITEMP_ONE_WIRE
  2. #define UNITEMP_ONE_WIRE
  3. #include "../unitemp.h"
  4. //Интерфейс One Wire
  5. typedef struct {
  6. //Тип интерфейса подключения датчика
  7. Interface interface;
  8. //Порт подключения датчика
  9. const GPIO* gpio;
  10. //Время последнего опроса
  11. uint32_t lastPollingTime;
  12. } OneWireSensor;
  13. #endif