Christian Weiß / Mbed 2 deprecated Diplomarbeit_MW_CW

Dependencies:   mbed

Committer:
Wizo
Date:
Thu Nov 15 17:57:01 2018 +0000
Revision:
1:dfa0f59e8d2c
Parent:
0:afeca64a6543
Diplomarbeit_MW_CW

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martwerl 0:afeca64a6543 1 /* mbed Microcontroller Library
martwerl 0:afeca64a6543 2 * Copyright (c) 2006-2013 ARM Limited
martwerl 0:afeca64a6543 3 *
martwerl 0:afeca64a6543 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
martwerl 0:afeca64a6543 5 * of this software and associated documentation files (the "Software"), to deal
martwerl 0:afeca64a6543 6 * in the Software without restriction, including without limitation the rights
martwerl 0:afeca64a6543 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
martwerl 0:afeca64a6543 8 * copies of the Software, and to permit persons to whom the Software is
martwerl 0:afeca64a6543 9 * furnished to do so, subject to the following conditions:
martwerl 0:afeca64a6543 10 *
martwerl 0:afeca64a6543 11 * The above copyright notice and this permission notice shall be included in
martwerl 0:afeca64a6543 12 * all copies or substantial portions of the Software.
martwerl 0:afeca64a6543 13 *
martwerl 0:afeca64a6543 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
martwerl 0:afeca64a6543 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
martwerl 0:afeca64a6543 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
martwerl 0:afeca64a6543 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
martwerl 0:afeca64a6543 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
martwerl 0:afeca64a6543 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
martwerl 0:afeca64a6543 20 * SOFTWARE.
martwerl 0:afeca64a6543 21 */
martwerl 0:afeca64a6543 22 #ifndef MBED_ANALOGOUT_API_H
martwerl 0:afeca64a6543 23 #define MBED_ANALOGOUT_API_H
martwerl 0:afeca64a6543 24
martwerl 0:afeca64a6543 25 #include "device.h"
martwerl 0:afeca64a6543 26
martwerl 0:afeca64a6543 27 #if DEVICE_ANALOGOUT
martwerl 0:afeca64a6543 28
martwerl 0:afeca64a6543 29 #ifdef __cplusplus
martwerl 0:afeca64a6543 30 extern "C" {
martwerl 0:afeca64a6543 31 #endif
martwerl 0:afeca64a6543 32
martwerl 0:afeca64a6543 33 typedef struct dac_s dac_t;
martwerl 0:afeca64a6543 34
martwerl 0:afeca64a6543 35 void analogout_init (dac_t *obj, PinName pin);
martwerl 0:afeca64a6543 36 void analogout_free (dac_t *obj);
martwerl 0:afeca64a6543 37 void analogout_write (dac_t *obj, float value);
martwerl 0:afeca64a6543 38 void analogout_write_u16(dac_t *obj, uint16_t value);
martwerl 0:afeca64a6543 39 float analogout_read (dac_t *obj);
martwerl 0:afeca64a6543 40 uint16_t analogout_read_u16 (dac_t *obj);
martwerl 0:afeca64a6543 41
martwerl 0:afeca64a6543 42 #ifdef __cplusplus
martwerl 0:afeca64a6543 43 }
martwerl 0:afeca64a6543 44 #endif
martwerl 0:afeca64a6543 45
martwerl 0:afeca64a6543 46 #endif
martwerl 0:afeca64a6543 47
martwerl 0:afeca64a6543 48 #endif
martwerl 0:afeca64a6543 49