comparison src/i2c.inc @ 631:185ba2f91f59

3.09 beta 1 release
author heinrichsweikamp
date Fri, 28 Feb 2020 15:45:07 +0100
parents cd58f7fc86db
children 8c1f1f334275
comparison
equal deleted inserted replaced
630:4cd81bdbf15c 631:185ba2f91f59
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File i2c.inc combined next generation V3.1.0 3 ; File i2c.inc combined next generation V3.08.8
4 ; 4 ;
5 ; 5 ;
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
7 ;============================================================================= 7 ;=============================================================================
8 ; HISTORY 8 ; HISTORY
17 extern lt2942_get_voltage ; read battery voltage registers 17 extern lt2942_get_voltage ; read battery voltage registers
18 extern lt2942_get_temperature ; read battery temperature 18 extern lt2942_get_temperature ; read battery temperature
19 extern lt2942_get_accumulated_charge ; read battery gauge register 19 extern lt2942_get_accumulated_charge ; read battery gauge register
20 extern lt2942_charge_done ; set battery gauge register to fully charged 20 extern lt2942_charge_done ; set battery gauge register to fully charged
21 21
22 extern reset_battery_gauge_and_lt2942 ; reset battery registers and battery gauge chip
23 extern reset_battery_gauge ; reset battery registers only
24
22 IFDEF _rx_functions 25 IFDEF _rx_functions
23 extern I2C_probe_OSTC_rx ; set ostc_rx_present bit if present 26 extern I2C_probe_OSTC_rx ; set ostc_rx_present bit if present
24 extern I2C_get_tankdata ; get the tank data 27 extern I2C_get_tankdata ; get the tank data
25 ENDIF 28 ENDIF
26 29