LPC11U35 ADC Tick & USBSerial
Dependents: SmallDoseMeter_SingleCH_AE_lpc11u35_V1_00
mbed/analogout_api.h@1:b1a3be5f48ab, 2018-02-19 (annotated)
- Committer:
- H_Tsunemoto
- Date:
- Mon Feb 19 09:09:52 2018 +0000
- Revision:
- 1:b1a3be5f48ab
- Parent:
- 0:871ab6846b18
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
H_Tsunemoto | 0:871ab6846b18 | 1 | /* mbed Microcontroller Library |
H_Tsunemoto | 0:871ab6846b18 | 2 | * Copyright (c) 2006-2013 ARM Limited |
H_Tsunemoto | 0:871ab6846b18 | 3 | * |
H_Tsunemoto | 0:871ab6846b18 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
H_Tsunemoto | 0:871ab6846b18 | 5 | * you may not use this file except in compliance with the License. |
H_Tsunemoto | 0:871ab6846b18 | 6 | * You may obtain a copy of the License at |
H_Tsunemoto | 0:871ab6846b18 | 7 | * |
H_Tsunemoto | 0:871ab6846b18 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
H_Tsunemoto | 0:871ab6846b18 | 9 | * |
H_Tsunemoto | 0:871ab6846b18 | 10 | * Unless required by applicable law or agreed to in writing, software |
H_Tsunemoto | 0:871ab6846b18 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
H_Tsunemoto | 0:871ab6846b18 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
H_Tsunemoto | 0:871ab6846b18 | 13 | * See the License for the specific language governing permissions and |
H_Tsunemoto | 0:871ab6846b18 | 14 | * limitations under the License. |
H_Tsunemoto | 0:871ab6846b18 | 15 | */ |
H_Tsunemoto | 0:871ab6846b18 | 16 | #ifndef MBED_ANALOGOUT_API_H |
H_Tsunemoto | 0:871ab6846b18 | 17 | #define MBED_ANALOGOUT_API_H |
H_Tsunemoto | 0:871ab6846b18 | 18 | |
H_Tsunemoto | 0:871ab6846b18 | 19 | #include "device.h" |
H_Tsunemoto | 0:871ab6846b18 | 20 | |
H_Tsunemoto | 0:871ab6846b18 | 21 | #if DEVICE_ANALOGOUT |
H_Tsunemoto | 0:871ab6846b18 | 22 | |
H_Tsunemoto | 0:871ab6846b18 | 23 | #ifdef __cplusplus |
H_Tsunemoto | 0:871ab6846b18 | 24 | extern "C" { |
H_Tsunemoto | 0:871ab6846b18 | 25 | #endif |
H_Tsunemoto | 0:871ab6846b18 | 26 | |
H_Tsunemoto | 0:871ab6846b18 | 27 | typedef struct dac_s dac_t; |
H_Tsunemoto | 0:871ab6846b18 | 28 | |
H_Tsunemoto | 0:871ab6846b18 | 29 | void analogout_init (dac_t *obj, PinName pin); |
H_Tsunemoto | 0:871ab6846b18 | 30 | void analogout_free (dac_t *obj); |
H_Tsunemoto | 0:871ab6846b18 | 31 | void analogout_write (dac_t *obj, float value); |
H_Tsunemoto | 0:871ab6846b18 | 32 | void analogout_write_u16(dac_t *obj, uint16_t value); |
H_Tsunemoto | 0:871ab6846b18 | 33 | float analogout_read (dac_t *obj); |
H_Tsunemoto | 0:871ab6846b18 | 34 | uint16_t analogout_read_u16 (dac_t *obj); |
H_Tsunemoto | 0:871ab6846b18 | 35 | |
H_Tsunemoto | 0:871ab6846b18 | 36 | #ifdef __cplusplus |
H_Tsunemoto | 0:871ab6846b18 | 37 | } |
H_Tsunemoto | 0:871ab6846b18 | 38 | #endif |
H_Tsunemoto | 0:871ab6846b18 | 39 | |
H_Tsunemoto | 0:871ab6846b18 | 40 | #endif |
H_Tsunemoto | 0:871ab6846b18 | 41 | |
H_Tsunemoto | 0:871ab6846b18 | 42 | #endif |