view src/i2c.inc @ 615:b87f23fae743

work on new battery menu
author heinrichsweikamp
date Sat, 02 Feb 2019 17:39:44 +0100
parents ca4556fb60b9
children c40025d8e750
line wrap: on
line source

;=============================================================================
;
;   File i2c.inc														V2.99c
;
;
;   Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
;=============================================================================
; HISTORY
;  2012-10-24 : [mH] Creation

	extern	I2C_RX_accelerometer
	extern	I2C_init_accelerometer
	extern	I2C_sleep_accelerometer
	extern	I2C_init_compass
	extern	I2C_sleep_compass
	extern	I2C_RX_compass
	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

 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