Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 23 lines (16 sloc) 0.376 kB
7f6323c @notahat First cut at SPI and MCP320x device support.
notahat authored
1 #ifndef AikoDeviceMCP320x_h
2 #define AikoDeviceMCP320x_h
3
4 namespace Aiko {
5 namespace Device {
6
7 class MCP320x {
8 public:
41e72e9 @notahat Reference SPIBus directly in MCP320x.
notahat authored
9 MCP320x(unsigned char slaveSelectPin);
7f6323c @notahat First cut at SPI and MCP320x device support.
notahat authored
10 unsigned int readChannel(unsigned char channel);
11
12 private:
44e43db @notahat Implicit setup of SPI and MCP320x.
notahat authored
13 void setup();
7f6323c @notahat First cut at SPI and MCP320x device support.
notahat authored
14
15 unsigned char slaveSelectPin_;
44e43db @notahat Implicit setup of SPI and MCP320x.
notahat authored
16 bool isSetUp_;
7f6323c @notahat First cut at SPI and MCP320x device support.
notahat authored
17 };
18
19 };
20 };
21
22 #endif
Something went wrong with that request. Please try again.