dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_annuncdac.h
Go to the documentation of this file.
1 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, write to the Free Software Foundation, Inc.,
27  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28  *
29  * Additional note on redistribution: The copyright and license notices above
30  * must be maintained in each individual source file that is a derivative work
31  * of this source file; otherwise redistribution is prohibited.
32  */
33 
34 #ifndef _PIOS_ANNUNCDAC_H
35 #define _PIOS_ANNUNCDAC_H
36 
37 #include <pios_dac.h>
38 
39 typedef struct annuncdac_dev_s *annuncdac_dev_t;
40 
47 int32_t PIOS_ANNUNCDAC_Init(annuncdac_dev_t *annuncdac_id, dac_dev_t dac);
48 
55 void PIOS_ANNUNCDAC_SetValue(annuncdac_dev_t dev, bool active, bool value);
56 
57 #endif /* _PIOS_ANNUNCDAC_H */
int32_t PIOS_ANNUNCDAC_Init(annuncdac_dev_t *annuncdac_id, dac_dev_t dac)
Allocate and initialise ANNUNCDAC device.
void PIOS_ANNUNCDAC_SetValue(annuncdac_dev_t dev, bool active, bool value)
Set whether we should be beeping.
uint16_t value
Definition: storm32bgc.c:155
struct dac_dev_s * dac_dev_t
Definition: pios_dac.h:40
struct annuncdac_dev_s * annuncdac_dev_t