Program Listing for File mcp3008.hh
↰ Return to documentation for file (include/mcp3008/mcp3008.hh
)
#ifndef HIVLE_MCP3008_HH
#define HIVLE_MCP3008_HH
#include "mcp3x0x/mcp3x0x.hh"
#include "spi_bus/spi.hh"
namespace iplo {
class MCP3008 : public MCP3X0X {
std::uint8_t buildRequest(std::uint8_t channel, bool single, std::uint8_t* data) override;
public:
explicit MCP3008(SPI& spi);
};
} /* namespace iplo */
#endif /* HIVLE_MCP3008_HH */