This is a class which contains function to interface with the MLX75320
Diff: LidarSpi.h
- Revision:
- 3:9ed1d493c235
- Parent:
- 0:dfe498e03679
- Child:
- 4:534855b07d93
diff -r e3ace426cee5 -r 9ed1d493c235 LidarSpi.h --- a/LidarSpi.h Thu Feb 25 08:14:59 2016 +0000 +++ b/LidarSpi.h Fri Mar 04 11:53:52 2016 +0000 @@ -154,7 +154,7 @@ }; - LidarSpi(PinName mosi, PinName miso, PinName clk, PinName chipSelect, PinName dr, PinName rs, PinName tr); + LidarSpi(PinName mosi, PinName miso, PinName clk, PinName chipSelect, PinName dr, PinName rs, PinName tr, PinName smpl); int SpiSetting(long freq, int mode, Serial* pc); int TxPacket(uint8_t* rData, uint16_t *rSz, uint8_t *tData, uint16_t tSz); int TxPacketWord(uint8_t* rData, uint16_t *rSz, uint8_t *tData, uint16_t tSz); @@ -190,6 +190,7 @@ DigitalOut chipS; DigitalIn dataReady; DigitalIn resetPin; + DigitalIn sampling; DigitalOut trigger;