no-OS
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
38 extern "C"
39 {
40 #endif
41 
42 /*****************************************************************************/
43 /***************************** Include Files *********************************/
44 /*****************************************************************************/
45 
46 #include "stdio.h"
47 #include "stdint.h"
48 
49 /*****************************************************************************/
50 /********************** Macros and Constants Definition **********************/
51 /*****************************************************************************/
52 
53 /******************************************************************************/
54 /********************** Variables and User defined data types *****************/
55 /******************************************************************************/
61  /* Analog input pin number */
62  int32_t number;
63 };
64 
69 struct mbed_ain_desc {
70  /* Analog input pin number */
71  int32_t number;
72  /* Analog Input instance (mbed::AnalogIn) */
73  void *ain_obj;
74 };
75 
81  /* Analog output pin number */
82  int32_t number;
83 };
84 
90  /* Analog output pin number */
91  int32_t number;
92  /* Analog Output instance (mbed::AnalogOut) */
93  void *aout_obj;
94 };
95 
96 /******************************************************************************/
97 /*****************************Function Declarations****************************/
98 /******************************************************************************/
99 
100 #ifdef __cplusplus // Closing extern c
101 }
102 #endif
103 
104 #endif /* MBED_AIN_AOUT_H */
mbed_ain_desc::ain_obj
void * ain_obj
Definition: mbed_ain_aout.h:73
mbed_aout_desc::aout_obj
void * aout_obj
Definition: mbed_ain_aout.h:93
mbed_aout_desc
Definition: mbed_ain_aout.h:89
mbed_ain_desc
Definition: mbed_ain_aout.h:69
mbed_aout_desc::number
int32_t number
Definition: mbed_ain_aout.h:91
mbed_aout_init_param::number
int32_t number
Definition: mbed_ain_aout.h:82
mbed_ain_init_param::number
int32_t number
Definition: mbed_ain_aout.h:62
mbed_ain_init_param
Definition: mbed_ain_aout.h:60
mbed_aout_init_param
Definition: mbed_ain_aout.h:80
mbed_ain_desc::number
int32_t number
Definition: mbed_ain_aout.h:71