diff src/i2c.inc @ 623:c40025d8e750

3.03 beta released
author heinrichsweikamp
date Mon, 03 Jun 2019 14:01:48 +0200
parents b87f23fae743
children cd58f7fc86db
line wrap: on
line diff
--- a/src/i2c.inc	Wed Apr 10 10:51:07 2019 +0200
+++ b/src/i2c.inc	Mon Jun 03 14:01:48 2019 +0200
@@ -1,6 +1,6 @@
 ;=============================================================================
 ;
-;   File i2c.inc														V2.99c
+;   File i2c.inc                               combined next generation V3.1.0
 ;
 ;
 ;   Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
@@ -13,15 +13,20 @@
 	extern	I2C_sleep_accelerometer
 	extern	I2C_init_compass
 	extern	I2C_sleep_compass
-	extern	I2C_RX_compass
+
+	extern	lt2942_init						; init gauge IC
+	extern	lt2942_get_status				; read gauge IC status
 	extern	lt2942_get_voltage				; read battery voltage registers
-	extern  lt2942_get_temperature
-	extern	lt2942_get_accumulated_charge	; get battery gauge registers
-	extern	lt2942_init						; init
-	extern	lt2942_get_status				; get status
+	extern	lt2942_get_temperature			; read battery temperature
+	extern	lt2942_get_accumulated_charge	; read battery gauge register
+	extern	lt2942_charge_done				; set  battery gauge register to fully charged
 
  IFDEF _rx_functions
 	extern	I2C_probe_OSTC_rx				; set ostc_rx_present bit if present
 	extern	I2C_get_tankdata				; get the tank data
 	extern	I2C_update_OSTC_rx				; load new firmware into RX processor
  ENDIF
+
+ IFDEF _compass
+	extern	I2C_RX_compass
+ ENDIF
\ No newline at end of file