no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mbed_ain_aout.h
Go to the documentation of this file.
1/***************************************************************************//*
2* @file mbed_ain_aout.h
3* @brief Header containing extra types required for
4* analog in/output functionality
5******************************************************************************
6* Copyright (c) 2021-22 Analog Devices, Inc.
7* Redistribution and use in source and binary forms, with or without
8* modification, are permitted provided that the following conditions are met:
9*
10* 1. Redistributions of source code must retain the above copyright notice,
11* this list of conditions and the following disclaimer.
12*
13* 2. Redistributions in binary form must reproduce the above copyright notice,
14* this list of conditions and the following disclaimer in the documentation
15* and/or other materials provided with the distribution.
16*
17* 3. Neither the name of Analog Devices, Inc. nor the names of its
18* contributors may be used to endorse or promote products derived from this
19* software without specific prior written permission.
20*
21* THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR
22* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
24* EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
25* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
27* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*******************************************************************************/
32
33#ifndef MBED_AIN_AOUT_H
34#define MBED_AIN_AOUT_H
35
36// Platform support needs to be C-compatible to work with other drivers
37#ifdef __cplusplus
38extern "C"
39{
40#endif
41
42#include "stdio.h"
43#include "stdint.h"
44
50 /* Analog input pin number */
51 int32_t number;
52};
53
59 /* Analog input pin number */
60 int32_t number;
61 /* Analog Input instance (mbed::AnalogIn) */
62 void *ain_obj;
63};
64
70 /* Analog output pin number */
71 int32_t number;
72};
73
79 /* Analog output pin number */
80 int32_t number;
81 /* Analog Output instance (mbed::AnalogOut) */
82 void *aout_obj;
83};
84
85#ifdef __cplusplus // Closing extern c
86}
87#endif
88
89#endif /* MBED_AIN_AOUT_H */
Definition mbed_ain_aout.h:58
int32_t number
Definition mbed_ain_aout.h:60
void * ain_obj
Definition mbed_ain_aout.h:62
Definition mbed_ain_aout.h:49
int32_t number
Definition mbed_ain_aout.h:51
Definition mbed_ain_aout.h:78
void * aout_obj
Definition mbed_ain_aout.h:82
int32_t number
Definition mbed_ain_aout.h:80
Definition mbed_ain_aout.h:69
int32_t number
Definition mbed_ain_aout.h:71