Mercurial > public > ostc4
comparison Small_CPU/Inc/i2c.h @ 554:3328189786e7
Added external ADC interface functionality (MCP3424):
Added communication protocoll to read data from external ADC. At the moment 16bit and 18bit resolutions are supported. External data will be read and forwarded depending on the conversion time of the ADC.
author | Ideenmodellierer |
---|---|
date | Thu, 12 Nov 2020 19:46:03 +0100 |
parents | e595d2d1f77f |
children | 91a8f9893e68 |
comparison
equal
deleted
inserted
replaced
553:43a2dd4ba30f | 554:3328189786e7 |
---|---|
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 */ | 29 /* ADC for external bulkhead */ |
30 #define DEVICE_EXTERNAL_ADC 0x68 // MCP3424 with Adr0=GND and Adr1=GND (Hardware gen 3 only) | 30 #define DEVICE_EXTERNAL_ADC 0xD0 // MCP3424 with Adr0=GND and Adr1=GND (Hardware gen 3 only) |
31 | 31 |
32 | 32 |
33 /* Includes ------------------------------------------------------------------*/ | 33 /* Includes ------------------------------------------------------------------*/ |
34 #include "stm32f4xx_hal.h" | 34 #include "stm32f4xx_hal.h" |
35 | 35 |