ACDC Senior Project v1.0.0
Senior Project for Textron Aviation
Loading...
Searching...
No Matches
ACDC_LTC1298_ADC.h
Go to the documentation of this file.
1
10#ifndef __ACDC_LTC1298_ADC_H
11#define __ACDC_LTC1298_ADC_H
12
13#include "stm32f1xx.h"
14#include "ACDC_stdint.h"
15
16typedef struct {
17 SPI_TypeDef *SPIx;
18 GPIO_TypeDef *GPIOx_CS;
21
27LTC1298_t LTCADC_InitCS(SPI_TypeDef *SPIx, GPIO_TypeDef *GPIOx, uint16_t GPIO_PIN);
28
33
38
39#endif
uint16_t LTCADC_ReadCH0CS(LTC1298_t LTC_ADC)
Reads the current ADC value on channel 0 (Software CS)
Definition ACDC_LTC1298_ADC.c:46
LTC1298_t LTCADC_InitCS(SPI_TypeDef *SPIx, GPIO_TypeDef *GPIOx, uint16_t GPIO_PIN)
Initiliazes SPIx and the external LTC1298IS8 ADC. Also sets up the software CS pin for SPIx.
Definition ACDC_LTC1298_ADC.c:38
uint16_t LTCADC_ReadCH1CS(LTC1298_t LTC_ADC)
Reads the current ADC value on channel 1 (SoftwareCS)
Definition ACDC_LTC1298_ADC.c:54
Header file for intx_t and uintx_t types.
unsigned short uint16_t
Definition ACDC_stdint.h:15
Definition ACDC_LTC1298_ADC.h:16
SPI_TypeDef * SPIx
Definition ACDC_LTC1298_ADC.h:17
GPIO_TypeDef * GPIOx_CS
Definition ACDC_LTC1298_ADC.h:18
uint16_t GPIO_PIN_CS
Definition ACDC_LTC1298_ADC.h:19