comparison Small_CPU/Inc/i2c.h @ 545:e595d2d1f77f

Add I2C address for external bulkhead ADC (Hardware gen 3 only) to i2c.h
author heinrichsweikamp
date Tue, 03 Nov 2020 12:47:51 +0100
parents c3d511365552
children 3328189786e7
comparison
equal deleted inserted replaced
544:3bb94d361f29 545:e595d2d1f77f
24 #define WHOIAM_VALUE_LSM303AGR 0x33 24 #define WHOIAM_VALUE_LSM303AGR 0x33
25 25
26 /* Battery Gas Gauge */ 26 /* Battery Gas Gauge */
27 #define DEVICE_BATTERYGAUGE 0xC8 // LTC2941 battery gauge 27 #define DEVICE_BATTERYGAUGE 0xC8 // LTC2941 battery gauge
28 28
29 /* ADC for external bulkhead */
30 #define DEVICE_EXTERNAL_ADC 0x68 // MCP3424 with Adr0=GND and Adr1=GND (Hardware gen 3 only)
31
29 32
30 /* Includes ------------------------------------------------------------------*/ 33 /* Includes ------------------------------------------------------------------*/
31 #include "stm32f4xx_hal.h" 34 #include "stm32f4xx_hal.h"
32 35
33 HAL_StatusTypeDef I2C_Master_Transmit( uint16_t DevAddress, uint8_t *pData, uint16_t Size); 36 HAL_StatusTypeDef I2C_Master_Transmit( uint16_t DevAddress, uint8_t *pData, uint16_t Size);