This is a class which contains function to interface with the MLX75320

Dependents:   MLX75320_API

Revision:
6:748062f3de21
Parent:
4:534855b07d93
Child:
7:c47612b25c77
--- a/LidarSpi.h	Fri Mar 04 14:17:32 2016 +0000
+++ b/LidarSpi.h	Wed Mar 23 15:24:50 2016 +0000
@@ -6,6 +6,7 @@
 #include "FunctionPointer.h"
 
 
+
 class LidarSpi
 {
     public:
@@ -173,7 +174,8 @@
         int GetEchoes ( Echo *ech, uint16_t maxN, uint16_t mode, Serial* pc);
         int GetTrace  ( uint16_t *buf, uint16_t maxN, uint16_t nSam, uint16_t idx, Serial* pc);
         int GetTraceOne  ( uint16_t *buf, uint16_t maxN, uint16_t nSam, uint16_t idx,int index , Serial* pc);
-        int LoadPatch ( uint16_t address, uint8_t  *buf, uint16_t nBytes);
+        int LoadPatch (const char *patch, Serial *pc);
+        
         int PrintAllReg (uint16_t * regs, uint32_t * val, uint16_t size);
         
         void Trigger(int level);
@@ -193,7 +195,8 @@
         DigitalOut trigger;
         DigitalIn sampling;
         
-
+        int parse_hex_line(char *theline, uint8_t bytes[], uint16_t *addr, uint16_t *num, uint16_t *code);
+        int LoadPatchFragment(const char *patch, uint16_t *addrStart, uint16_t *startLine, uint16_t *nBytes, uint8_t *memory, Serial* pc);
 
           
 };