Program Listing for File mcp3204.hh

Return to documentation for file (include/mcp3204/mcp3204.hh)

#ifndef IPLO_MCP3204_HH
#define IPLO_MCP3204_HH

#include "mcp3x0x/mcp3x0x.hh"
#include "spi_bus/spi.hh"

namespace iplo {

class MCP3204 : public MCP3X0X {
    std::uint8_t buildRequest(std::uint8_t channel, bool single, std::uint8_t* data) override;

public:
    explicit MCP3204(iplo::SPI& spi);
};

} /* namespace iplo */

#endif /* IPLO_MCP3204_HH */