Platform drivers for Mbed.
Dependents: EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more
timer_extra.h
00001 /***************************************************************************//* 00002 * @file timer_extra.h 00003 * @brief Header containing extra types for Timer interface 00004 ****************************************************************************** 00005 * Copyright (c) 2021 Analog Devices, Inc. 00006 * All rights reserved. 00007 * 00008 * This software is proprietary to Analog Devices, Inc. and its licensors. 00009 * By using this software you agree to the terms of the associated 00010 * Analog Devices Software License Agreement. 00011 ******************************************************************************/ 00012 00013 #ifndef _TIMER_EXTRA_H_ 00014 #define _TIMER_EXTRA_H_ 00015 00016 // Platform support needs to be C-compatible to work with other drivers 00017 #ifdef __cplusplus 00018 extern "C" 00019 { 00020 #endif 00021 00022 /*****************************************************************************/ 00023 /***************************** Include Files *********************************/ 00024 /*****************************************************************************/ 00025 00026 #include "stdio.h" 00027 #include "stdint.h" 00028 00029 /*****************************************************************************/ 00030 /********************** Macros and Constants Definition **********************/ 00031 /*****************************************************************************/ 00032 00033 /******************************************************************************/ 00034 /********************** Variables and User defined data types *****************/ 00035 /******************************************************************************/ 00036 00037 /** 00038 * @struct mbed_timer_desc 00039 * @brief Structure holding the mbed specific Timer parameters 00040 */ 00041 typedef struct mbed_timer_desc { 00042 void *timer; // Object to the mbed Timer class 00043 } mbed_timer_desc; 00044 00045 /******************************************************************************/ 00046 /*****************************Function Declarations****************************/ 00047 /******************************************************************************/ 00048 00049 /* Function to capture the elapsed time in nanoseconds */ 00050 int32_t get_elapsed_time_in_nsec(struct timer_desc *desc, 00051 uint64_t *elapsed_time); 00052 00053 #ifdef __cplusplus // Closing extern c 00054 } 00055 #endif 00056 00057 #endif /*_TIMER_EXTRA_H_ */
Generated on Wed Jul 13 2022 14:37:51 by 1.7.2