34 #include <mraa/common.hpp> 35 #include <mraa/uart_ow.hpp> 37 #define DS2413_DEFAULT_UART 0 82 static const uint8_t DS2413_FAMILY_CODE = 0x3a;
101 DS2413(
int uart=DS2413_DEFAULT_UART);
125 return m_devicesFound;
162 return m_deviceMap[index];
171 std::map<int, std::string> m_deviceMap;
int devicesFound()
Definition: ds2413.hpp:123
~DS2413()
Definition: ds2413.cxx:51
DS2413(int uart=DS2413_DEFAULT_UART)
Definition: ds2413.cxx:35
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void writeGpios(int index, int value)
Definition: ds2413.cxx:130
std::string getId(int index)
Definition: ds2413.hpp:160
int readGpios(int index=0)
Definition: ds2413.cxx:100
void init()
Definition: ds2413.cxx:55
API for the DS2413 1-Wire Dual Channel Addressable Switch.
Definition: ds2413.hpp:77