Platform drivers for Mbed.

Dependents:   EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbed_ain_aout_extra.h Source File

mbed_ain_aout_extra.h

00001 /***************************************************************************//*
00002 * @file    mbed_ain_aout_extra.h
00003 * @brief   Header containing extra types required for
00004 *          analog in/output functionality
00005 ******************************************************************************
00006 * Copyright (c) 2021 Analog Devices, Inc.
00007 * All rights reserved.
00008 *
00009 * This software is proprietary to Analog Devices, Inc. and its licensors.
00010 * By using this software you agree to the terms of the associated
00011 * Analog Devices Software License Agreement.
00012 ******************************************************************************/
00013 
00014 #ifndef MBED_AIN_AOUT_EXTRA_H_
00015 #define MBED_AIN_AOUT_EXTRA_H_
00016 
00017 // Platform support needs to be C-compatible to work with other drivers
00018 #ifdef __cplusplus
00019 extern "C"
00020 {
00021 #endif
00022 
00023 /*****************************************************************************/
00024 /***************************** Include Files *********************************/
00025 /*****************************************************************************/
00026 
00027 #include "stdio.h"
00028 #include "stdint.h"
00029 
00030 /*****************************************************************************/
00031 /********************** Macros and Constants Definition **********************/
00032 /*****************************************************************************/
00033 
00034 /******************************************************************************/
00035 /********************** Variables and User defined data types *****************/
00036 /******************************************************************************/
00037 /**
00038  * @struct mbed_analog_in_desc
00039  * @brief  Analog input pin specific descriptor for the mbed platform.
00040  */
00041 struct mbed_analog_in_desc {
00042     /* Analog Input instance (mbed::AnalogIn) */
00043     void *analog_in_obj;        
00044 };
00045 
00046 /**
00047  * @struct mbed_analog_out_desc
00048  * @brief  Analog output pin specific descriptor for the mbed platform.
00049  */
00050 struct mbed_analog_out_desc {
00051     /* Analog Output instance (mbed::AnalogOut) */
00052     void *analog_out_obj;       
00053 };
00054 
00055 /**
00056  * @brief mbed specific analog input platform ops structure
00057  */
00058 extern const struct ain_platform_ops mbed_ain_ops;
00059     
00060 /**
00061  * @brief mbed specific analog output platform ops structure
00062  */
00063 extern const struct aout_platform_ops mbed_out_ops;
00064 
00065 /******************************************************************************/
00066 /*****************************Function Declarations****************************/
00067 /******************************************************************************/
00068 
00069 #ifdef __cplusplus // Closing extern c
00070 }
00071 #endif
00072 
00073 #endif /* MBED_AIN_AOUT_EXTRA_H_ */
00074