0
|
1 ;=============================================================================
|
|
2 ;
|
631
|
3 ; File i2c.inc combined next generation V3.08.8
|
0
|
4 ;
|
|
5 ;
|
|
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
|
|
7 ;=============================================================================
|
|
8 ; HISTORY
|
|
9 ; 2012-10-24 : [mH] Creation
|
|
10
|
604
|
11 extern I2C_RX_accelerometer
|
|
12 extern I2C_init_compass
|
|
13 extern I2C_sleep_compass
|
623
|
14
|
|
15 extern lt2942_init ; init gauge IC
|
|
16 extern lt2942_get_status ; read gauge IC status
|
604
|
17 extern lt2942_get_voltage ; read battery voltage registers
|
623
|
18 extern lt2942_get_temperature ; read battery temperature
|
|
19 extern lt2942_get_accumulated_charge ; read battery gauge register
|
|
20 extern lt2942_charge_done ; set battery gauge register to fully charged
|
604
|
21
|
631
|
22 extern reset_battery_gauge_and_lt2942 ; reset battery registers and battery gauge chip
|
|
23 extern reset_battery_gauge ; reset battery registers only
|
|
24
|
604
|
25 IFDEF _rx_functions
|
|
26 extern I2C_probe_OSTC_rx ; set ostc_rx_present bit if present
|
|
27 extern I2C_get_tankdata ; get the tank data
|
628
|
28 ENDIF
|
|
29
|
|
30 IFDEF _rx_update
|
604
|
31 extern I2C_update_OSTC_rx ; load new firmware into RX processor
|
|
32 ENDIF
|
623
|
33
|
|
34 IFDEF _compass
|
|
35 extern I2C_RX_compass
|
|
36 ENDIF |