SDK3.5
This document shows Ameba SDK 3.5 APIs
analogin_api.h File Reference

This file provides following mbed Analog_in API. More...

Ameba Common

typedef struct analogin_s analogin_t
 
void analogin_init (analogin_t *obj, PinName pin)
 Initializes the ADC device, include clock/function/ADC registers. More...
 
void analogin_deinit (analogin_t *obj)
 Deinitializes the ADC device, include clock/function/ADC registers. More...
 
float analogin_read (analogin_t *obj)
 Reads data from the specified adc channel fifo. More...
 
uint16_t analogin_read_u16 (analogin_t *obj)
 Reads data from the specified adc channel fifo. More...
 

Detailed Description

This file provides following mbed Analog_in API.

mbed Microcontroller Library

Author
Version
V1.0.0
Attention

Copyright (c) 2006-2013 ARM Limited

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.