analogIn with DMA

Dependents:   TDEMNucleo

Committer:
willybayot
Date:
Sat Jan 03 15:41:29 2015 +0000
Revision:
4:2844a210bd46
Parent:
2:08779d8f1873
revision 2;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
willybayot 0:1f6ea9afd585 1 /* mbed Microcontroller Library
willybayot 0:1f6ea9afd585 2 * Copyright (c) 2006-2013 ARM Limited
willybayot 0:1f6ea9afd585 3 *
willybayot 0:1f6ea9afd585 4 * Licensed under the Apache License, Version 2.0 (the "License");
willybayot 0:1f6ea9afd585 5 * you may not use this file except in compliance with the License.
willybayot 0:1f6ea9afd585 6 * You may obtain a copy of the License at
willybayot 0:1f6ea9afd585 7 *
willybayot 0:1f6ea9afd585 8 * http://www.apache.org/licenses/LICENSE-2.0
willybayot 0:1f6ea9afd585 9 *
willybayot 0:1f6ea9afd585 10 * Unless required by applicable law or agreed to in writing, software
willybayot 0:1f6ea9afd585 11 * distributed under the License is distributed on an "AS IS" BASIS,
willybayot 0:1f6ea9afd585 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
willybayot 0:1f6ea9afd585 13 * See the License for the specific language governing permissions and
willybayot 0:1f6ea9afd585 14 * limitations under the License.
willybayot 0:1f6ea9afd585 15 */
willybayot 1:4b275a292c9d 16 #ifndef MBED_ANALOGINDMA_API_H
willybayot 1:4b275a292c9d 17 #define MBED_ANALOGINDMA_API_H
willybayot 0:1f6ea9afd585 18
willybayot 0:1f6ea9afd585 19 #include "device.h"
willybayot 0:1f6ea9afd585 20
willybayot 0:1f6ea9afd585 21 #if DEVICE_ANALOGIN
willybayot 0:1f6ea9afd585 22
willybayot 0:1f6ea9afd585 23 #ifdef __cplusplus
willybayot 0:1f6ea9afd585 24 extern "C" {
willybayot 0:1f6ea9afd585 25 #endif
willybayot 0:1f6ea9afd585 26
willybayot 0:1f6ea9afd585 27 typedef struct analogin_s analogin_t;
willybayot 0:1f6ea9afd585 28
willybayot 0:1f6ea9afd585 29 void analoginDMA_init (analogin_t *obj, PinName pin);
willybayot 4:2844a210bd46 30 HAL_StatusTypeDef analoginDMA_read (analogin_t *obj,uint16_t* pData, uint32_t Length);
willybayot 4:2844a210bd46 31 HAL_StatusTypeDef analoginDMA_read_u16(analogin_t *obj,uint16_t* pData, uint32_t Length);
willybayot 0:1f6ea9afd585 32
willybayot 0:1f6ea9afd585 33 #ifdef __cplusplus
willybayot 0:1f6ea9afd585 34 }
willybayot 0:1f6ea9afd585 35 #endif
willybayot 0:1f6ea9afd585 36
willybayot 0:1f6ea9afd585 37 #endif
willybayot 0:1f6ea9afd585 38
willybayot 0:1f6ea9afd585 39 #endif