cc3000 hostdriver with the mbed socket interface

Fork of cc3000_hostdriver_mbedsocket by Martin Kojtal

Revision:
47:a63fe1a4f568
Parent:
45:50ab13d8f2dc
Child:
51:897cfc2c7e8c
diff -r ca8c234997c0 -r a63fe1a4f568 cc3000.h
--- a/cc3000.h	Sun Nov 10 21:41:44 2013 +0100
+++ b/cc3000.h	Tue Jan 20 09:04:49 2015 +0000
@@ -1746,7 +1746,22 @@
      *  \return
      *      Pointer to a string containing the IP address.
      */
-    char* getIPAddress();
+     char* getIPAddress();
+     
+     /**
+     *  \brief Return the CC3000's firmware version.
+     *  \param firmware Retreived firmware version.
+     *  \return 0 if successful, -1 otherwise.
+     */
+     uint8_t read_sp_version(uint8_t firmware[2]);
+
+     /**
+     *  \brief routine to update firmware of CC3000
+     *  \param 
+     *  \return 0 if successful, -1 otherwise.
+     */
+     uint8_t write_patch(uint32_t file_id, uint32_t length, const uint8_t *data);
+               
      /**
      *  \brief Get the Gateway address of your Ethernet interface
      *  \param none