ACDC Senior Project v1.0.0
Senior Project for Textron Aviation
|
Header file for the LTC1451 12-bit DAC. More...
Go to the source code of this file.
Data Structures | |
struct | LTC1451_t |
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) | |
Header file for the LTC1451 12-bit DAC.
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, ...) |