dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_dac.h File Reference
#include <stdint.h>
#include <stdio.h>
#include "stm32f4xx_dac.h"

Go to the source code of this file.

Data Structures

struct  pios_dac_cfg
 

Typedefs

typedef struct dac_dev_s * dac_dev_t
 
typedef bool(* fill_dma_cb )(void *ctx, uint16_t *buf, int len)
 

Functions

int PIOS_DAC_init (dac_dev_t *dev_out, const struct pios_dac_cfg *cfg)
 Allocate and initialise DAC device. More...
 
void PIOS_DAC_dma_interrupt_handler (dac_dev_t dev)
 Handles a DMA completion interrupt on dma_stream. More...
 
bool PIOS_DAC_install_callback (dac_dev_t dev, uint8_t priority, fill_dma_cb cb, void *ctx)
 

Detailed Description

Author
dRonin, http://dronin.org Copyright (C) 2017
See Also
The GNU Public License (GPL) Version 3

Definition in file pios_dac.h.