Mercurial > public > hwos_code
comparison src/i2c.inc @ 623:c40025d8e750
3.03 beta released
author | heinrichsweikamp |
---|---|
date | Mon, 03 Jun 2019 14:01:48 +0200 |
parents | b87f23fae743 |
children | cd58f7fc86db |
comparison
equal
deleted
inserted
replaced
622:02d1386429a6 | 623:c40025d8e750 |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; File i2c.inc V2.99c | 3 ; File i2c.inc combined next generation V3.1.0 |
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 |
11 extern I2C_RX_accelerometer | 11 extern I2C_RX_accelerometer |
12 extern I2C_init_accelerometer | 12 extern I2C_init_accelerometer |
13 extern I2C_sleep_accelerometer | 13 extern I2C_sleep_accelerometer |
14 extern I2C_init_compass | 14 extern I2C_init_compass |
15 extern I2C_sleep_compass | 15 extern I2C_sleep_compass |
16 extern I2C_RX_compass | 16 |
17 extern lt2942_init ; init gauge IC | |
18 extern lt2942_get_status ; read gauge IC status | |
17 extern lt2942_get_voltage ; read battery voltage registers | 19 extern lt2942_get_voltage ; read battery voltage registers |
18 extern lt2942_get_temperature | 20 extern lt2942_get_temperature ; read battery temperature |
19 extern lt2942_get_accumulated_charge ; get battery gauge registers | 21 extern lt2942_get_accumulated_charge ; read battery gauge register |
20 extern lt2942_init ; init | 22 extern lt2942_charge_done ; set battery gauge register to fully charged |
21 extern lt2942_get_status ; get status | |
22 | 23 |
23 IFDEF _rx_functions | 24 IFDEF _rx_functions |
24 extern I2C_probe_OSTC_rx ; set ostc_rx_present bit if present | 25 extern I2C_probe_OSTC_rx ; set ostc_rx_present bit if present |
25 extern I2C_get_tankdata ; get the tank data | 26 extern I2C_get_tankdata ; get the tank data |
26 extern I2C_update_OSTC_rx ; load new firmware into RX processor | 27 extern I2C_update_OSTC_rx ; load new firmware into RX processor |
27 ENDIF | 28 ENDIF |
29 | |
30 IFDEF _compass | |
31 extern I2C_RX_compass | |
32 ENDIF |