This is a class which contains function to interface with the MLX75320
Diff: LidarSpi.cpp
- Revision:
- 13:ccf4ab73c33d
- Parent:
- 12:d1767e2bd3a8
--- a/LidarSpi.cpp Fri Apr 29 13:39:19 2016 +0000 +++ b/LidarSpi.cpp Tue May 17 18:54:04 2016 +0000 @@ -8,7 +8,7 @@ #include <inttypes.h> #define SPIFREQ 8000 - +//Set DEBUG to 1 to enable debug printf over Serial interface #ifndef DEBUG #define DEBUG 0 #define debug_print(pntPc, ...) \ @@ -348,7 +348,7 @@ return 0; } -int LidarSpi::GetEchoes(Echo *ech, uint16_t maxN, uint16_t mode) +int LidarSpi::GetEchoes(Echo *ech, uint16_t maxN) { trigger.write(0); int res, a, b; @@ -489,7 +489,7 @@ } -int LidarSpi::GetEchoes(Echo *ech, uint16_t maxN, uint16_t mode, Serial* pc) +int LidarSpi::GetEchoes(Echo *ech, uint16_t maxN, Serial* pc) { trigger.write(0); int res, a, b; @@ -700,7 +700,7 @@ -int LidarSpi::GetTrace ( uint16_t *buf, uint16_t maxN, uint16_t nSam, uint16_t idx, Serial* pc){ +int LidarSpi::GetTrace ( uint16_t *buf, uint16_t maxN,Serial* pc){ trigger.write(0); int res, a, b; uint32_t cnt;