ACDC Senior Project v1.0.0
Senior Project for Textron Aviation
|
Implementation of the external 12-bit LTC1451 Digital to Analog Converter (DAC) More...
Macros | |
#define | MAX_CLOCK_SPEED 12500000UL |
Functions | |
LTC1451_t | LTCDAC_InitCS (SPI_TypeDef *SPIx, GPIO_TypeDef *GPIOx, uint16_t GPIO_PIN) |
Initiliazes SPIx and the external LTC1451 DAC. Also sets up the sofware CS pin for SPIx. | |
void | LTCDAC_SetOutputCS (LTC1451_t LTC_DAC, uint16_t outputVal) |
Sets the DAC's ouptut voltage (0-4.095v) | |
Implementation of the external 12-bit LTC1451 Digital to Analog Converter (DAC)
#define MAX_CLOCK_SPEED 12500000UL |
Initiliazes SPIx and the external LTC1451 DAC. Also sets up the sofware CS pin for SPIx.
SPIx | SPI Peripheral (Ex. SPI1 or SPI2) |
GPIOx | GPIO Port for the chip select pin (Ex. GPIOA, GPIOB, ...) |
GPIO_PIN | Desired chip select pin on port GPIOx (Ex. GPIO_PIN_0, GPIO_PIN_1, ...) |