iSensor-SPI-Buffer
1.15
Firmware for the iSensor-SPI-Buffer board to enable full throughput buffered data capture on Analog Devices IMUs
firmware
Core
Inc
adc.h
Go to the documentation of this file.
1
11
#ifndef INC_ADC_H_
12
#define INC_ADC_H_
13
14
/* Header includes require for prototypes */
15
#include <stdint.h>
16
17
/* Public function prototypes */
18
19
/* @cond DOXYGEN_IGNORE */
20
void
ADC_Init
();
21
void
ADC_Update
();
22
/* @endcond */
23
25
#define TS_CAL1 ((uint16_t*) ((uint32_t) 0x1FFFF7B8))
26
28
#define TS_CAL2 ((uint16_t*) ((uint32_t) 0x1FFFF7C2))
29
31
#define VREFINT_CAL ((uint16_t*) ((uint32_t) 0x1FFFF7BA))
32
34
#define ADC_VDD_START 0
35
37
#define ADC_VDD_READ 1
38
40
#define ADC_TEMP_START 2
41
43
#define ADC_TEMP_READ 3
44
45
#endif
/* INC_ADC_H_ */
reg.h
Header file for iSensor-SPI-Buffer register interfacing module.
stm32f3xx_hal_conf.h
HAL configuration file.
adc.h
Header file for iSensor-SPI-Buffer ADC module (for temp sensor and Vdd monitoring)
ADC_Update
void ADC_Update()
Read and scale ADC values then load to output registers.
Definition:
adc.c:106
ADC_TEMP_READ
#define ADC_TEMP_READ
Definition:
adc.h:43
ProcessTempReading
static void ProcessTempReading()
Handle end of conversion for a temp sensor value.
Definition:
adc.c:151
ADC_VDD_READ
#define ADC_VDD_READ
Definition:
adc.h:37
ADC_VDD_START
#define ADC_VDD_START
Definition:
adc.h:34
hadc1
static ADC_HandleTypeDef hadc1
Definition:
adc.c:23
Main_Error_Handler
void Main_Error_Handler()
This function is executed in case of error occurrence.
Definition:
main.c:233
main.h
Header file for iSensor-SPI-Buffer main.
ScaleTempData
static int16_t ScaleTempData(uint32_t rawTemp)
Scale raw ADC temperature data to temp output.
Definition:
adc.c:218
ADC_Init
void ADC_Init()
ADC1 Initialization Function.
Definition:
adc.c:40
GetVdd
static uint16_t GetVdd(uint32_t VrefMeasurement)
Calculate Vdd from VREFINT measurement.
Definition:
adc.c:198
ADC_TEMP_START
#define ADC_TEMP_START
Definition:
adc.h:40
Generated by
1.8.20