test version 0.2

Dependents:   SC18IS606_Hello SC18IS606_EEPROM_access_test SC18IS606_OS6_Hello

Files at this revision

API Documentation at this revision

Comitter:
okano
Date:
Thu Jul 29 01:35:53 2021 +0000
Parent:
6:cfe7ec4f2b59
Commit message:
added read version, GPIO read

Changed in this revision

SC18IS606.cpp Show annotated file Show diff for this revision Revisions of this file
SC18IS606.h Show annotated file Show diff for this revision Revisions of this file
diff -r cfe7ec4f2b59 -r 9fee975998c1 SC18IS606.cpp
--- a/SC18IS606.cpp	Wed Jul 28 20:20:15 2021 +0000
+++ b/SC18IS606.cpp	Thu Jul 29 01:35:53 2021 +0000
@@ -96,7 +96,7 @@
 char* SC18IS606::read_version( void )
 {
     static char s[ 16 ];
-    char        func_id = 0xFE;
+    char        func_id = Read_Version;
     int         err;
     
     err  = i2c.write( device_address, &func_id, sizeof( func_id ) );
diff -r cfe7ec4f2b59 -r 9fee975998c1 SC18IS606.h
--- a/SC18IS606.h	Wed Jul 28 20:20:15 2021 +0000
+++ b/SC18IS606.h	Thu Jul 29 01:35:53 2021 +0000
@@ -100,7 +100,8 @@
         GPIO_Write              = 0xF4,
         GPIO_Read,
         GPIO_Enable,
-        GPIO_Configuration
+        GPIO_Configuration,
+        Read_Version            = 0xFE
     }
     FunctionID;