Added accessor function for the spi device to spi.h
This commit is contained in:
parent
bfc6440ccb
commit
e9f67b2f63
|
@ -286,6 +286,9 @@ public:
|
||||||
* @see HardwareSPI::read()
|
* @see HardwareSPI::read()
|
||||||
*/
|
*/
|
||||||
uint8 recv(void);
|
uint8 recv(void);
|
||||||
|
|
||||||
|
spi_dev *dev(){ return spi_d;}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
spi_dev *spi_d;
|
spi_dev *spi_d;
|
||||||
uint8_t _SSPin;
|
uint8_t _SSPin;
|
||||||
|
|
Loading…
Reference in New Issue